From 071ba199d0c7e9794f017bcc1ede6bdb77ea54cf Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 16 Feb 2021 19:18:43 -0300 Subject: Use check-inputs when build derivations --- default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index 142f048..3732bae 100644 --- a/default.nix +++ b/default.nix @@ -1,10 +1,13 @@ { pkgs }: self: super: let - default-derivation = { name, version-prefix, version, ... }: + default-derivation = { name, version-prefix, version, check-inputs, ... }: pkgs.stdenv.mkDerivation rec { inherit name version; + checkInputs = map (p: pkgs."${p}") check-inputs; + doCheck = true; + src = fetchTarball { url = "https://git.euandreh.xyz/${name}/snapshot/${name}-${version-prefix}${version}.tar.gz"; -- cgit v1.2.3