From decea26274bd3b7f613143a69d87dca1eabee50c Mon Sep 17 00:00:00 2001 From: Minijackson Date: Mon, 22 Oct 2018 21:24:19 +0200 Subject: Avoid recompiling everything for Nix's check phase --- derivation.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'derivation.nix') 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 { cp target/release/build/set_eq-*/out/_set_eq "$out/share/zsh/site-functions/" ''; + checkPhase = '' + runHook preCheck + + echo "Running cargo test --release" + cargo test --release + + runHook postCheck + ''; + meta = with stdenv.lib; { description = "A command-line tool to manipulate PulseAudio's equalizer"; homepage = https://github.com/minijackson/set_eq; -- cgit v1.2.3