diff options
author | Lorenzo Manacorda <lorenzo@mailbox.org> | 2019-02-18 22:42:59 +0100 |
---|---|---|
committer | Lorenzo Manacorda <lorenzo@mailbox.org> | 2019-02-22 19:26:47 +0100 |
commit | 04cb60bc8699f0d0fbd477e28d8d58ecf0e82aaa (patch) | |
tree | 46071f997fa5155e1f778857694148fa320c5c8a /pkgs/os-specific/linux | |
parent | 8f0cba10a6faab23005281c2bb9403183ffcf057 (diff) |
ledger-udev-rules: init at unstable-2019-02-13
Diffstat (limited to 'pkgs/os-specific/linux')
-rw-r--r-- | pkgs/os-specific/linux/ledger-udev-rules/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/ledger-udev-rules/default.nix b/pkgs/os-specific/linux/ledger-udev-rules/default.nix new file mode 100644 index 000000000000..28027fd4510a --- /dev/null +++ b/pkgs/os-specific/linux/ledger-udev-rules/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "ledger-udev-rules"; + version = "unstable-2019-02-13"; + + src = fetchFromGitHub { + owner = "LedgerHQ"; + repo = "udev-rules"; + rev = "20cc1651eb551c4855aaa56628c77eaeb3031c22"; + sha256 = "0riydkc4in10pv4qlrvbg3w78qsvxly5caa3zwyqcmsm5fmprqky"; + }; + + dontBuild = true; + dontConfigure = true; + + installPhase = '' + mkdir -p $out/lib/udev/rules.d + cp 20-hw1.rules $out/lib/udev/rules.d/20-ledger.rules + ''; + + meta = with stdenv.lib; { + description = "udev rules for Ledger devices"; + license = licenses.asl20; + maintainers = with maintainers; [ asymmetric ]; + platforms = platforms.linux; + homepage = https://github.com/LedgerHQ/udev-rules; + }; +} |