X-Git-Url: http://git.scottworley.com/auto-upgrade-with-pinch/blobdiff_plain/bbc804af5ed161ec3aea729002bf6b0e57af4357..37a3940646500164164cca594c1f7d950d363a0f:/overlays/polite-merge.nix?ds=sidebyside diff --git a/overlays/polite-merge.nix b/overlays/polite-merge.nix index bc73b15..37f7ba5 100644 --- a/overlays/polite-merge.nix +++ b/overlays/polite-merge.nix @@ -1,4 +1,10 @@ -self: super: { +self: super: +let + checkInputsAreNative = self.lib.hasInfix "nativeCheckInputs" + (builtins.readFile ); + checkInputsName = + if checkInputsAreNative then "nativeCheckInputs" else "checkInputs"; +in { polite-merge = if builtins.hasAttr "polite-merge" super then super.polite-merge else @@ -12,7 +18,7 @@ self: super: { sha256 = "1p6ivaay3bk4vvqqic7g23xrhkkq8z19zhsaxkav8kk90s2bmmza"; }; postUnpack = "patchShebangs ."; - checkInputs = [ git ]; + "${checkInputsName}" = [ git ]; doCheck = true; preInstall = "export prefix"; }) { };