2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-06-20 22:41:09 +00:00
|
|
|
|
2021-11-19 08:41:21 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-06-20 22:41:09 +00:00
|
|
|
pname = "zsa-udev-rules";
|
2021-11-19 08:41:21 +00:00
|
|
|
version = "2.1.3";
|
2020-06-20 22:41:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zsa";
|
|
|
|
repo = "wally";
|
2021-11-19 08:41:21 +00:00
|
|
|
rev = "${version}-linux";
|
|
|
|
sha256 = "mZzXKFKlO/jAitnqzfvmIHp46A+R3xt2gOhVC3qN6gM=";
|
2020-06-20 22:41:09 +00:00
|
|
|
};
|
|
|
|
|
2021-11-19 08:41:21 +00:00
|
|
|
# Only copies udevs rules
|
2020-06-20 22:41:09 +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-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-06-20 22:41:09 +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";
|
|
|
|
};
|
|
|
|
}
|