]> git.scottworley.com Git - auto-upgrade-with-pinch/commitdiff
Drop 22.11 support: Just use "nativeCheckInputs"
authorScott Worley <scottworley@scottworley.com>
Thu, 12 Dec 2024 02:44:55 +0000 (18:44 -0800)
committerScott Worley <scottworley@scottworley.com>
Thu, 12 Dec 2024 02:44:55 +0000 (18:44 -0800)
overlays/pinch.nix
overlays/polite-merge.nix

index 37c2e7d079f7ea1816b53c59a815e09403f85c43..8e9633f89cf6a5c9f0cebc6046a51102253b39fb 100644 (file)
@@ -1,10 +1,5 @@
 self: super:
 let
 self: super:
 let
-  checkInputsAreNative = self.lib.hasInfix "nativeCheckInputs"
-    (builtins.readFile <nixpkgs/doc/stdenv/stdenv.chapter.md>);
-  checkInputsName =
-    if checkInputsAreNative then "nativeCheckInputs" else "checkInputs";
-
   fallback-git-cache = self.python3Packages.callPackage
     ({ buildPythonPackage, fetchgit, git, backoff, mypy, }:
       buildPythonPackage rec {
   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 ];
           hash = "sha256-g4TS/zX3e29Q3ThsCAX2wLLlYbi8fdux5uqAc+b/Oww=";
         };
         propagatedBuildInputs = [ backoff ];
-        "${checkInputsName}" = [ git mypy ];
+        nativeCheckInputs = [ git mypy ];
         doCheck = true;
         checkPhase = "./test.sh";
       }) { };
         doCheck = true;
         checkPhase = "./test.sh";
       }) { };
@@ -33,7 +28,7 @@ let
         };
         buildInputs = [ makeWrapper ];
         propagatedBuildInputs = [ git-cache ];
         };
         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
         '';
         postInstall = ''
           wrapProgram "$out/bin/pinch" --prefix PATH : ${nix_2_3}/bin
         '';
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";
       }) { };