base(probe-rs): Get udev rules from GitHub
Some checks failed
/ check (push) Failing after 19m14s

This commit is contained in:
Erwin Boskma 2024-02-05 12:36:00 +01:00
parent 4cd0f83ce8
commit 1bd05aaa4f
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk
2 changed files with 14 additions and 12 deletions

View file

@ -11,10 +11,7 @@ let
inherit (pkgs.stdenv) mkDerivation; inherit (pkgs.stdenv) mkDerivation;
inherit lib; inherit lib;
}; };
probersRules = pkgs.callPackage ./probe-rs { probersRules = pkgs.callPackage ./probe-rs { inherit lib; };
inherit (pkgs.stdenv) mkDerivation;
inherit lib;
};
blink1Rules = pkgs.callPackage ./blink1-udev { blink1Rules = pkgs.callPackage ./blink1-udev {
inherit (pkgs.stdenv) mkDerivation; inherit (pkgs.stdenv) mkDerivation;
inherit lib; inherit lib;

View file

@ -1,20 +1,25 @@
{ mkDerivation, lib }: {
mkDerivation { stdenv,
lib,
fetchFromGitHub,
}:
stdenv.mkDerivation {
pname = "probe-rs-udev-rules"; pname = "probe-rs-udev-rules";
version = "20220312131009"; version = "20240203071125";
src = builtins.fetchurl { src = fetchFromGitHub {
url = "https://probe.rs/files/69-probe-rs.rules"; owner = "probe-rs";
sha256 = "1dLTJ0S5Fxs0y3yme7blGqUG8RwQj/BkZV8PIrmX5gI="; repo = "webpage";
rev = "b0e0d281572b2415db5f51a2951207503e51173d";
sha256 = "a/ugBQlSAZ6WE7ysFjPsdoPlH+3aZeechHA+NJsBOH4=";
}; };
dontUnpack = true;
dontBuild = true; dontBuild = true;
dontConfigure = true; dontConfigure = true;
installPhase = '' installPhase = ''
mkdir -p $out/lib/udev/rules.d mkdir -p $out/lib/udev/rules.d
cp $src $out/lib/udev/rules.d/69-probe-rs.rules cp $src/src/static/files/69-probe-rs.rules $out/lib/udev/rules.d/69-probe-rs.rules
''; '';
meta = with lib; { meta = with lib; {