2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-12-27 14:24:52 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-12-27 14:24:52 +00:00
|
|
|
pname = "zsa-udev-rules";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "2.1.3";
|
2020-12-27 14:24:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zsa";
|
|
|
|
repo = "wally";
|
2021-12-19 01:06:50 +00:00
|
|
|
rev = "${version}-linux";
|
|
|
|
sha256 = "mZzXKFKlO/jAitnqzfvmIHp46A+R3xt2gOhVC3qN6gM=";
|
2020-12-27 14:24:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
# Only copies udevs rules
|
2020-12-27 14:24:52 +00:00
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
dontFixup = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib/udev/rules.d
|
|
|
|
cp dist/linux64/50-oryx.rules $out/lib/udev/rules.d/
|
|
|
|
cp dist/linux64/50-wally.rules $out/lib/udev/rules.d/
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-27 14:24:52 +00:00
|
|
|
description = "udev rules for ZSA devices";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ davidak ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
homepage = "https://github.com/zsa/wally/wiki/Linux-install#2-create-a-udev-rule-file";
|
|
|
|
};
|
|
|
|
}
|