diff options
Diffstat (limited to 'derivation.nix')
-rw-r--r-- | derivation.nix | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/derivation.nix b/derivation.nix index 394b1bb..738d088 100644 --- a/derivation.nix +++ b/derivation.nix | |||
@@ -1,19 +1,19 @@ | |||
1 | { stdenv, rustPlatform, dbus, pkgconfig, ... }: | 1 | { stdenv, rustPlatform, dbus, installShellFiles, ... }: |
2 | 2 | ||
3 | rustPlatform.buildRustPackage rec { | 3 | rustPlatform.buildRustPackage rec { |
4 | name = "set_eq-${version}"; | 4 | name = "set_eq-${version}"; |
5 | version = "0.1.0"; | 5 | version = "0.1.0"; |
6 | 6 | ||
7 | buildInputs = [ dbus pkgconfig ]; | 7 | nativeBuildInputs = [ installShellFiles ]; |
8 | buildInputs = [ dbus ]; | ||
8 | 9 | ||
9 | src = ./.; | 10 | src = ./.; |
10 | cargoSha256 = "094jq6mlhdgc204xjrp233dckvwmmpbivr59jcpfrl7shchclrd2"; | 11 | cargoSha256 = "0639d4b5f3vxljinm59vh7kfvqqm07iah90gqb10l91xpc9lj2b5"; |
11 | 12 | ||
12 | preFixup = '' | 13 | postInstall = '' |
13 | mkdir -p "$out/share/"{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions} | 14 | installShellCompletion --bash target/release/build/set_eq-*/out/set_eq.bash |
14 | cp target/release/build/set_eq-*/out/set_eq.bash "$out/share/bash-completion/completions/" | 15 | installShellCompletion --fish target/release/build/set_eq-*/out/set_eq.fish |
15 | cp target/release/build/set_eq-*/out/set_eq.fish "$out/share/fish/vendor_completions.d/" | 16 | installShellCompletion --zsh target/release/build/set_eq-*/out/_set_eq |
16 | cp target/release/build/set_eq-*/out/_set_eq "$out/share/zsh/site-functions/" | ||
17 | ''; | 17 | ''; |
18 | 18 | ||
19 | meta = with stdenv.lib; { | 19 | meta = with stdenv.lib; { |