]> git.scottworley.com Git - auto-upgrade-with-pinch/blobdiff - overlays/polite-merge.nix
Drop 22.11 support: Just use "nativeCheckInputs"
[auto-upgrade-with-pinch] / overlays / polite-merge.nix
index 37f7ba54aab8f3084c722e26f087291f6d926bfa..c4a02a81ad3094c2b753b193cab679eda58fbebb 100644 (file)
@@ -1,10 +1,4 @@
-self: super:
-let
-  checkInputsAreNative = self.lib.hasInfix "nativeCheckInputs"
-    (builtins.readFile <nixpkgs/doc/stdenv/stdenv.chapter.md>);
-  checkInputsName =
-    if checkInputsAreNative then "nativeCheckInputs" else "checkInputs";
-in {
+self: super: {
   polite-merge = if builtins.hasAttr "polite-merge" super then
     super.polite-merge
   else
   polite-merge = if builtins.hasAttr "polite-merge" super then
     super.polite-merge
   else
@@ -18,7 +12,7 @@ in {
           sha256 = "1p6ivaay3bk4vvqqic7g23xrhkkq8z19zhsaxkav8kk90s2bmmza";
         };
         postUnpack = "patchShebangs .";
           sha256 = "1p6ivaay3bk4vvqqic7g23xrhkkq8z19zhsaxkav8kk90s2bmmza";
         };
         postUnpack = "patchShebangs .";
-        "${checkInputsName}" = [ git ];
+        nativeCheckInputs = [ git ];
         doCheck = true;
         preInstall = "export prefix";
       }) { };
         doCheck = true;
         preInstall = "export prefix";
       }) { };