summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2018-10-22 21:24:19 +0200
committerMinijackson <minijackson@riseup.net>2018-10-22 21:24:19 +0200
commitdecea26274bd3b7f613143a69d87dca1eabee50c (patch)
tree64dea03232349a5fa98060d54d02656f7e4f6e89
parent3e05d8cc19867bcad0d17cd9d5ea870660061dc9 (diff)
downloadset_eq-decea26274bd3b7f613143a69d87dca1eabee50c.tar.gz
set_eq-decea26274bd3b7f613143a69d87dca1eabee50c.zip
Avoid recompiling everything for Nix's check phase
-rw-r--r--derivation.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/derivation.nix b/derivation.nix
index fbaa95e..33e57d6 100644
--- a/derivation.nix
+++ b/derivation.nix
@@ -16,6 +16,15 @@ rustPlatform.buildRustPackage rec {
16 cp target/release/build/set_eq-*/out/_set_eq "$out/share/zsh/site-functions/" 16 cp target/release/build/set_eq-*/out/_set_eq "$out/share/zsh/site-functions/"
17 ''; 17 '';
18 18
19 checkPhase = ''
20 runHook preCheck
21
22 echo "Running cargo test --release"
23 cargo test --release
24
25 runHook postCheck
26 '';
27
19 meta = with stdenv.lib; { 28 meta = with stdenv.lib; {
20 description = "A command-line tool to manipulate PulseAudio's equalizer"; 29 description = "A command-line tool to manipulate PulseAudio's equalizer";
21 homepage = https://github.com/minijackson/set_eq; 30 homepage = https://github.com/minijackson/set_eq;