## [Unreleased]
+### Changed
+- Use nix from nixpkgs rather than from PATH. This is needed when the nix in
+PATH is nixUnstable-3.0pre20201020_e0ca98c or later because nix commit
+787469c7b66aec12ab6847e7db2cdc8aef5c325e removed <nix/unpack-channel.nix>.
## [3.0.3] - 2021-05-20
checkPhase = "./test.sh";
};
-in pkgs.python3Packages.callPackage
-({ lib, buildPythonPackage, nix, git, autopep8, mypy, pylint, git-cache, }:
+in pkgs.python3Packages.callPackage ({ lib, buildPythonPackage, nix, git
+ , autopep8, makeWrapper, mypy, pylint, git-cache, }:
buildPythonPackage rec {
pname = "pinch";
version = "3.0.4-pre";
src = lib.cleanSource ./.;
+ buildInputs = [ makeWrapper ];
propagatedBuildInputs = [ git-cache ];
checkInputs = [ nix git mypy ] ++ lib.optionals lint [ autopep8 pylint ];
+ postInstall = ''
+ wrapProgram "$out/bin/pinch" --prefix PATH : ${nix}/bin
+ '';
doCheck = true;
checkPhase = "./test.sh";
}) {