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
48 lines
1.4 KiB
Nix
48 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
appimageTools,
|
|
segger-jlink-headless,
|
|
}:
|
|
|
|
let
|
|
pname = "nrfconnect";
|
|
version = "5.1.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/desktop-software/nrf-connect-for-desktop/${lib.versions.major version}-${lib.versions.minor version}-${lib.versions.patch version}/nrfconnect-${version}-x86_64.appimage";
|
|
hash = "sha256-QEoKIdi8tlZ86langbCYJXSO+dGONBEQPdwmREIhZBA=";
|
|
name = "${pname}-${version}.AppImage";
|
|
};
|
|
|
|
appimageContents = appimageTools.extractType2 {
|
|
inherit pname version src;
|
|
};
|
|
|
|
in
|
|
appimageTools.wrapType2 {
|
|
inherit pname version src;
|
|
|
|
extraPkgs = pkgs: [
|
|
segger-jlink-headless
|
|
];
|
|
|
|
extraInstallCommands = ''
|
|
install -Dm444 ${appimageContents}/nrfconnect.desktop -t $out/share/applications
|
|
install -Dm444 ${appimageContents}/usr/share/icons/hicolor/512x512/apps/nrfconnect.png \
|
|
-t $out/share/icons/hicolor/512x512/apps
|
|
substituteInPlace $out/share/applications/nrfconnect.desktop \
|
|
--replace-fail 'Exec=AppRun' 'Exec=nrfconnect'
|
|
'';
|
|
|
|
meta = {
|
|
description = "Nordic Semiconductor nRF Connect for Desktop";
|
|
homepage = "https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-desktop";
|
|
license = lib.licenses.unfree;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [ stargate01 ];
|
|
mainProgram = "nrfconnect";
|
|
};
|
|
}
|