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