Skip to content

Commit

Permalink
feat(nix): install udev rules derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirius902 committed Feb 1, 2025
1 parent 0201f32 commit 7a01162
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
fileset = lib.fileset.unions [
./Cargo.toml
./Cargo.lock
./rules
(craneLib.fileset.commonCargoSources ./crates/gcinput)
(craneLib.fileset.commonCargoSources ./crates/panic-log)
(craneLib.fileset.commonCargoSources ./crates/gcfeeder-core)
Expand All @@ -105,6 +106,9 @@
wrapProgram $out/bin/gcfeeder \
--suffix LD_LIBRARY_PATH : ${lib.makeLibraryPath commonArgs.buildInputs}
mkdir -p $out/lib/udev/rules.d/
cp rules/50-gcfeeder.rules $out/lib/udev/rules.d/
install -Dm644 crates/gcfeeder/resource/icon.png $out/share/pixmaps/gcfeeder.png
'';

Expand Down

0 comments on commit 7a01162

Please sign in to comment.