diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-30 19:24:37 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-30 19:24:37 +0100 |
commit | 4cab70b1295ada831b38cd9ef5f15c77cc6b6e85 (patch) | |
tree | 6dcbca4a5a375f918b8eea85c8dd081ac8c7e23e | |
parent | feat(scripts/deployed): Track successful deployments (diff) | |
download | qmk_layout-4cab70b1295ada831b38cd9ef5f15c77cc6b6e85.zip |
feat(qmk_unicode_type): Include udev rules
-rw-r--r-- | rust/qmk-hid-com/src_c/contrib/lib/udev/rules.d/099-allow-hid.rules (renamed from rust/qmk-hid-com/contrib/lib/udev/rules.d/099-allow-hid.rules) | 0 | ||||
-rw-r--r-- | rust/qmk-hid-com/src_c/package.nix | 6 |
2 files changed, 6 insertions, 0 deletions
diff --git a/rust/qmk-hid-com/contrib/lib/udev/rules.d/099-allow-hid.rules b/rust/qmk-hid-com/src_c/contrib/lib/udev/rules.d/099-allow-hid.rules index c4fc74b..c4fc74b 100644 --- a/rust/qmk-hid-com/contrib/lib/udev/rules.d/099-allow-hid.rules +++ b/rust/qmk-hid-com/src_c/contrib/lib/udev/rules.d/099-allow-hid.rules diff --git a/rust/qmk-hid-com/src_c/package.nix b/rust/qmk-hid-com/src_c/package.nix index 17f84db..5089ebb 100644 --- a/rust/qmk-hid-com/src_c/package.nix +++ b/rust/qmk-hid-com/src_c/package.nix @@ -19,6 +19,7 @@ stdenv.mkDerivation { (type == "directory") || (builtins.elem (builtins.baseNameOf name) [ "virtual-keyboard-unstable-v1.xml" + "099-allow-hid.rules" ]) || (lib.strings.hasSuffix ".c" (builtins.baseNameOf name)) || (lib.strings.hasSuffix ".h" (builtins.baseNameOf name)) @@ -41,6 +42,7 @@ stdenv.mkDerivation { b_pie = "false"; c_std = "gnu2x"; }; + # ar with gcc plugins for lto objects preConfigure = '' CC="gcc"; @@ -49,6 +51,10 @@ stdenv.mkDerivation { export CC AR RANLIB ''; + postInstall = '' + install --mode=644 -D $src/contrib/lib/udev/rules.d/099-allow-hid.rules "$out/lib/udev/rules.d/19-allow-hid.rules" + ''; + strictDeps = true; nativeBuildInputs = [ meson |