python312Packages.types-aiobotocore: 2.15.2 -> 2.15.2.post3 (#361801)
[NixPkgs.git] / pkgs / by-name / nr / nrfconnect / package.nix
bloba60ddd533441d0d50817e2f957d3a05662d25308
1 { lib
2 , fetchurl
3 , appimageTools
4 }:
6 let
7   pname = "nrfconnect";
8   version = "4.4.1";
10   src = fetchurl {
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";
14   };
16   appimageContents = appimageTools.extractType2 {
17     inherit pname version src;
18   };
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'
31   '';
33   meta = with lib; {
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";
40   };