Merge pull request #213420 from MGlolenstine/picoprobe-udev-rules

picoprobe-udev-rules: init at 0.0.1
This commit is contained in:
Nick Cao 2023-01-31 14:47:12 +08:00 committed by GitHub
commit 13ac55a095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{ lib, stdenv, fetchurl }:
## Usage
# In NixOS, simply add this package to services.udev.packages:
# services.udev.packages = [ pkgs.picoprobe-udev-rules ];
stdenv.mkDerivation rec {
pname = "picoprobe-udev-rules";
version = "unstable-2023-01-31";
src = fetchurl {
url = "https://raw.githubusercontent.com/probe-rs/webpage/1cba61acc6ecb5ff96f74641269844ad88ad8ad5/static/files/69-probe-rs.rules";
sha256 = "sha256-vQMPX3Amttja0u03KWGnPDAVTGM9ekJ+IBTjW+xlJS0=";
};
dontUnpack = true;
dontBuild = true;
installPhase = ''
runHook preInstall
install -D $src $out/lib/udev/rules.d/69-probe-rs.rules
runHook postInstall
'';
meta = with lib; {
homepage = "https://probe.rs/docs/getting-started/probe-setup/#udev-rules";
description = "Picoprobe udev rules list";
platforms = platforms.linux;
license = licenses.gpl2Only;
maintainers = with maintainers; [ mglolenstine ];
};
}

View File

@ -26315,6 +26315,8 @@ with pkgs;
perf-tools = callPackage ../os-specific/linux/perf-tools { };
picoprobe-udev-rules = callPackage ../os-specific/linux/picoprobe-udev-rules { };
pipes = callPackage ../misc/screensavers/pipes { };
pipes-rs = callPackage ../misc/screensavers/pipes-rs { };