11 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";
12 hash = "sha256-x/vVSOEajuQtLATRXk8DVLlXHegCqP+acecaOFNeBb8=";
13 name = "${pname}-${version}.AppImage";
16 appimageContents = appimageTools.extractType2 {
17 inherit pname version src;
20 in appimageTools.wrapType2 {
21 inherit pname version src;
23 extraPkgs = pkgs: [ pkgs.segger-jlink ];
25 extraInstallCommands = ''
26 install -Dm444 ${appimageContents}/nrfconnect.desktop -t $out/share/applications
27 install -Dm444 ${appimageContents}/usr/share/icons/hicolor/512x512/apps/nrfconnect.png \
28 -t $out/share/icons/hicolor/512x512/apps
29 substituteInPlace $out/share/applications/nrfconnect.desktop \
30 --replace 'Exec=AppRun' 'Exec=nrfconnect'
34 description = "Nordic Semiconductor nRF Connect for Desktop";
35 homepage = "https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-desktop";
36 license = licenses.unfree;
37 platforms = platforms.linux;
38 maintainers = with maintainers; [ stargate01 ];
39 mainProgram = "nrfconnect";