lol
1{ lib, stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation {
4 pname = "ledger-udev-rules";
5 version = "unstable-2021-09-10";
6
7 src = fetchFromGitHub {
8 owner = "LedgerHQ";
9 repo = "udev-rules";
10 rev = "2776324af6df36c2af4d2e8e92a1c98c281117c9";
11 sha256 = "sha256-yTYI81PXMc32lMfI5uhD14nP20zAI7ZF33V1LRDWg2Y=";
12 };
13
14 dontBuild = true;
15 dontConfigure = true;
16
17 installPhase = ''
18 mkdir -p $out/lib/udev/rules.d
19 cp 20-hw1.rules $out/lib/udev/rules.d/20-ledger.rules
20 '';
21
22 meta = with lib; {
23 description = "udev rules for Ledger devices";
24 license = licenses.asl20;
25 maintainers = with maintainers; [ asymmetric ];
26 platforms = platforms.linux;
27 homepage = "https://github.com/LedgerHQ/udev-rules";
28 };
29}