X-Git-Url: http://git.scottworley.com/auto-upgrade-with-pinch/blobdiff_plain/beb12f9dc0751d25ba7a74c279e7f2de94d685cf..75da61c3ae743d49b32b4868dff552e03b3cf445:/overlays/pinch.nix diff --git a/overlays/pinch.nix b/overlays/pinch.nix index 37c2e7d..8e9633f 100644 --- a/overlays/pinch.nix +++ b/overlays/pinch.nix @@ -1,10 +1,5 @@ self: super: let - checkInputsAreNative = self.lib.hasInfix "nativeCheckInputs" - (builtins.readFile ); - checkInputsName = - if checkInputsAreNative then "nativeCheckInputs" else "checkInputs"; - fallback-git-cache = self.python3Packages.callPackage ({ buildPythonPackage, fetchgit, git, backoff, mypy, }: buildPythonPackage rec { @@ -16,7 +11,7 @@ let hash = "sha256-g4TS/zX3e29Q3ThsCAX2wLLlYbi8fdux5uqAc+b/Oww="; }; propagatedBuildInputs = [ backoff ]; - "${checkInputsName}" = [ git mypy ]; + nativeCheckInputs = [ git mypy ]; doCheck = true; checkPhase = "./test.sh"; }) { }; @@ -33,7 +28,7 @@ let }; buildInputs = [ makeWrapper ]; propagatedBuildInputs = [ git-cache ]; - "${checkInputsName}" = [ nix_2_3 git mypy ]; + nativeCheckInputs = [ nix_2_3 git mypy ]; postInstall = '' wrapProgram "$out/bin/pinch" --prefix PATH : ${nix_2_3}/bin '';