stevenblack-blocklist: 3.15.5 -> 3.15.8 (#372042)
[NixPkgs.git] / pkgs / by-name / nr / nrf-udev / package.nix
blob01048df4ec61bc5f95070ba92a9759d7e9e2b7c0
2   lib,
3   stdenvNoCC,
4   fetchFromGitHub,
5   gitUpdater,
6 }:
8 stdenvNoCC.mkDerivation (finalAttrs: {
9   pname = "nrf-udev";
10   version = "1.0.1";
12   src = fetchFromGitHub {
13     owner = "NordicSemiconductor";
14     repo = "nrf-udev";
15     rev = "v${finalAttrs.version}";
16     hash = "sha256-bEIAsz9ZwX6RTzhv5/waFZ5a3KlnwX4kQs29+475zN0=";
17   };
19   dontConfigure = true;
20   dontBuild = true;
22   installPhase = ''
23     runHook preInstall
25     mkdir -p $out
26     cp -r nrf-udev_*/lib $out
28     runHook postInstall
29   '';
31   passthru.updateScript = gitUpdater { rev-prefix = "v"; };
33   meta = with lib; {
34     description = "Udev rules for nRF (Nordic Semiconductor) development kits";
35     homepage = "https://github.com/NordicSemiconductor/nrf-udev";
36     changelog = "https://github.com/NordicSemiconductor/nrf-udev/releases/tag/${finalAttrs.src.rev}";
37     license = licenses.unfree;
38     platforms = platforms.all;
39     maintainers = with maintainers; [ h7x4 ];
40   };