Skip to content

Commit

Permalink
vendor-reset-udev-rules: init at 0.1.0
Browse files Browse the repository at this point in the history
vendor-reset-udev-rules: init at 0.1.0
  • Loading branch information
Vonixxx committed Jan 2, 2025
1 parent 6603456 commit d7ee858
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pkgs/by-name/ve/vendor-reset-udev-rules/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
lib,
stdenv,
fetchurl,
}:

stdenv.mkDerivation rec {
pname = "vendor-reset-udev-rules";
version = "0.1.0";

udevRules = fetchurl {
url = "https://raw.githubusercontent.com/gnif/vendor-reset/refs/heads/master/udev/99-vendor-reset.rules";
hash = "sha256-uwV640EdOTjkidjgqKQmKkgD2z31JxhZCoeeZTcLqok=";
};

dontUnpack = true;

installPhase = ''
cp ${udevRules} 99-vendor-reset.rules
mkdir -p $out/lib/udev/rules.d
cp 99-vendor-reset.rules $out/lib/udev/rules.d/99-vendor-reset.rules
'';

meta = with lib; {
homepage = "https://github.com/gnif/vendor-reset";
description = "Rules to ensure vendor-reset is loaded and the reset_method for our devices is set to 'device_specific' for kernel 5.15+";
platforms = platforms.linux;
license = licenses.gpl2Only;
maintainers = with maintainers; [ vonixxx ];
};
}

0 comments on commit d7ee858

Please sign in to comment.