nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenvNoCC,
4 fetchFromGitHub,
5 gitUpdater,
6}:
7
8stdenvNoCC.mkDerivation (finalAttrs: {
9 pname = "nrf-udev";
10 version = "1.0.1";
11
12 src = fetchFromGitHub {
13 owner = "NordicSemiconductor";
14 repo = "nrf-udev";
15 rev = "v${finalAttrs.version}";
16 hash = "sha256-bEIAsz9ZwX6RTzhv5/waFZ5a3KlnwX4kQs29+475zN0=";
17 };
18
19 dontConfigure = true;
20 dontBuild = true;
21
22 installPhase = ''
23 runHook preInstall
24
25 mkdir -p $out
26 cp -r nrf-udev_*/lib $out
27
28 runHook postInstall
29 '';
30
31 passthru.updateScript = gitUpdater { rev-prefix = "v"; };
32
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 };
41})