diff --git a/pkgs/development/interpreters/python/hooks/default.nix b/pkgs/development/interpreters/python/hooks/default.nix index ca70d452c808..b4f7ca9cd837 100644 --- a/pkgs/development/interpreters/python/hooks/default.nix +++ b/pkgs/development/interpreters/python/hooks/default.nix @@ -122,6 +122,7 @@ in { }; passthru.tests = import ./python-catch-conflicts-hook-tests.nix { inherit pythonOnBuildForHost runCommand; + inherit lib; inherit (pkgs) coreutils gnugrep writeShellScript; }; } ./python-catch-conflicts-hook.sh) {}; diff --git a/pkgs/development/interpreters/python/hooks/python-catch-conflicts-hook-tests.nix b/pkgs/development/interpreters/python/hooks/python-catch-conflicts-hook-tests.nix index 3890df40cb74..2a77ef015015 100644 --- a/pkgs/development/interpreters/python/hooks/python-catch-conflicts-hook-tests.nix +++ b/pkgs/development/interpreters/python/hooks/python-catch-conflicts-hook-tests.nix @@ -1,4 +1,4 @@ -{ pythonOnBuildForHost, runCommand, writeShellScript, coreutils, gnugrep }: let +{ lib, pythonOnBuildForHost, runCommand, writeShellScript, coreutils, gnugrep }: let pythonPkgs = pythonOnBuildForHost.pkgs; @@ -38,7 +38,7 @@ ); # in order to test for a failing build, wrap it in a shell script - expectFailure = build: errorMsg: build.overrideDerivation (old: { + expectFailure = build: errorMsg: lib.overrideDerivation build (old: { builder = writeShellScript "test-for-failure" '' export PATH=${coreutils}/bin:${gnugrep}/bin:$PATH ${old.builder} "$@" > ./log 2>&1