Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

49 lines
1.5 KiB
Nix

{
lib,
fetchurl,
appimageTools,
segger-jlink-headless,
libxshmfence,
}:
let
pname = "nrfconnect-bluetooth-low-energy";
version = "4.0.4";
src = fetchurl {
url = "https://github.com/NordicPlayground/pc-nrfconnect-ble-standalone/releases/download/v${version}/nrfconnect-bluetooth-low-energy-${version}-x86_64.AppImage";
hash = "sha256-mL8ky/cYjNgfUJgE7W5LFK/w7Ky9Xx6E84UT668HRAk=";
name = "${pname}-${version}.AppImage";
};
appimageContents = appimageTools.extractType2 {
inherit pname version src;
};
in
appimageTools.wrapType2 {
inherit pname version src;
extraPkgs = pkgs: [
segger-jlink-headless
libxshmfence
];
extraInstallCommands = ''
install -Dm444 ${appimageContents}/nrfconnect-bluetooth-low-energy.desktop -t $out/share/applications
install -Dm444 ${appimageContents}/usr/share/icons/hicolor/512x512/apps/nrfconnect-bluetooth-low-energy.png \
-t $out/share/icons/hicolor/512x512/apps
substituteInPlace $out/share/applications/nrfconnect-bluetooth-low-energy.desktop \
--replace-fail 'Exec=AppRun' 'Exec=nrfconnect-bluetooth-low-energy'
'';
meta = {
description = "Nordic Semiconductor Bluetooth low energy app for nRF Connect for Desktop";
homepage = "https://docs.nordicsemi.com/bundle/nrf-connect-ble/page/index.html";
license = lib.licenses.unfree;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ stargate01 ];
mainProgram = "nrfconnect-bluetooth-low-energy";
};
}