summaryrefslogtreecommitdiffstats
path: root/derivation.nix
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2018-09-04 19:30:02 +0200
committerMinijackson <minijackson@riseup.net>2018-09-04 19:30:02 +0200
commit8b6c0900d6d301eb2791a7300acfdf1cb7fcce8d (patch)
tree1cd7c9a688b6572cbc9a2d909d3ef30ec24b1615 /derivation.nix
parente2e2f14accc751573a2a52b43bd8c87e1f1b89db (diff)
downloadset_eq-8b6c0900d6d301eb2791a7300acfdf1cb7fcce8d.tar.gz
set_eq-8b6c0900d6d301eb2791a7300acfdf1cb7fcce8d.zip
Separate CLI + auto-generate completion at build time
Diffstat (limited to 'derivation.nix')
-rw-r--r--derivation.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/derivation.nix b/derivation.nix
index 329ef3b..b895bb8 100644
--- a/derivation.nix
+++ b/derivation.nix
@@ -9,6 +9,13 @@ rustPlatform.buildRustPackage rec {
9 src = ./.; 9 src = ./.;
10 cargoSha256 = "0lknxqr1pfbj6z981rw5ppkklknryyafl5f552aaw4iqhq94slq4"; 10 cargoSha256 = "0lknxqr1pfbj6z981rw5ppkklknryyafl5f552aaw4iqhq94slq4";
11 11
12 preFixup = ''
13 mkdir -p "$out/share/"{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions}
14 cp target/release/build/set_eq-*/out/set_eq.bash "$out/share/bash-completion/completions/"
15 cp target/release/build/set_eq-*/out/set_eq.fish "$out/share/fish/vendor_completions.d/"
16 cp target/release/build/set_eq-*/out/_set_eq "$out/share/zsh/site-functions/"
17 '';
18
12 meta = with stdenv.lib; { 19 meta = with stdenv.lib; {
13 description = "A command-line tool to manipulate PulseAudio's equalizer"; 20 description = "A command-line tool to manipulate PulseAudio's equalizer";
14 homepage = https://github.com/minijackson/set_eq; 21 homepage = https://github.com/minijackson/set_eq;