Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / nrf5-sdk / default.nix
blobc8667287a00205a7352086aaeed78b12dc78ed94
1 { lib
2 , stdenv
3 , fetchzip
4 }:
6 stdenv.mkDerivation rec {
7   pname = "nrf5-sdk";
8   version = "17.1.0";
10   urlHash = "ddde560";
12   src = fetchzip {
13     url = "https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/sdks/nrf5/binaries/nrf5_sdk_${version}_${urlHash}.zip";
14     sha256 = "sha256-q4WQ7X7/z/42/qcii+mOLnobqcbUy0tInkOfRH/Gwus=";
15   };
17   dontConfigure = true;
18   dontBuild = true;
20   installPhase = ''
21     runHook preInstall
23     mkdir -p $out/share/nRF5_SDK
24     mv * $out/share/nRF5_SDK
25     rm $out/share/nRF5_SDK/*.msi
27     runHook postInstall
28   '';
30   meta = with lib; {
31     description = "Nordic Semiconductor nRF5 Software Development Kit";
32     homepage = "https://www.nordicsemi.com/Products/Development-software/nRF5-SDK";
33     license = licenses.unfree;
34     platforms = platforms.all;
35     maintainers = with maintainers; [ stargate01 ];
36   };