38 lines
872 B
Nix
38 lines
872 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
# Based on:
|
|
# https://github.com/NixOS/nixpkgs/blob/nixos-25.05/pkgs/by-name/zs/zsa-udev-rules/package.nix
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "mv7-udev-rules";
|
|
version = "unstable-2025-06-20";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zenware";
|
|
repo = "mv7-udev-rules";
|
|
rev = "000000000000000000000000000000000";
|
|
hash = "sha256-0000000000000000000000000";
|
|
};
|
|
|
|
# Only copy udev rules
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
dontFixup = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/lib/udev/rules.d
|
|
cp dist/linux64/99-mv7-mic.rules $out/lib/udev/rules.d/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "udev rules for MV7 devices";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ zenware ];
|
|
platforms = platforms.linux;
|
|
homepage = "https://github.com/zenware/mv7-udev-rules";
|
|
};
|
|
}
|