resholve: fix CLI tests

This commit is contained in:
Thiago Kenji Okada 2023-01-10 21:50:29 +00:00
parent 03ab899a45
commit 1d77a86904
2 changed files with 7 additions and 2 deletions

View File

@ -33,18 +33,22 @@ let
deps = callPackage ./deps.nix { };
in
rec {
# not exposed in all-packages
resholveBuildTimeOnly = removeKnownVulnerabilities resholve;
# resholve itself
resholve = callPackage ./resholve.nix {
inherit (source) rSrc version;
inherit (deps.oil) oildev;
inherit (deps) configargparse;
inherit resholve-utils;
# used only in tests
resholve = resholveBuildTimeOnly;
};
# funcs to validate and phrase invocations of resholve
# and use those invocations to build packages
resholve-utils = callPackage ./resholve-utils.nix {
# we can still use resholve-utils without triggering a security warn
# this is safe since we will only use `resholve` at build time
resholve = removeKnownVulnerabilities resholve;
resholve = resholveBuildTimeOnly;
};
}

View File

@ -8,6 +8,7 @@
, oildev
, configargparse
, binlore
, resholve
, resholve-utils
}:
@ -41,7 +42,7 @@ python27.pkgs.buildPythonApplication {
passthru = {
inherit (resholve-utils) mkDerivation phraseSolution writeScript writeScriptBin;
tests = callPackage ./test.nix { inherit rSrc binlore python27; };
tests = callPackage ./test.nix { inherit rSrc binlore python27 resholve; };
};
meta = with lib; {