-
-
Save betaboon/4781d4bdce0f9f3019c180123bca7036 to your computer and use it in GitHub Desktop.
nix-shell with additional checkInputs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, python3Packages }: with python3Packages; | |
buildPythonPackage { | |
name = "myPackage"; | |
src = ./.; | |
propagatedBuildInputs = [ | |
some-package | |
]; | |
buildInputs = [ | |
some-other-package | |
]; | |
checkInputs = [ | |
some-check-input-package | |
]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
pkgs = import <nixpkgs> {}; | |
myPackage = import ./default.nix { | |
inherit pkgs; | |
inherit (pkgs) python3Packages; | |
}; | |
in (myPackage.overrideAttrs(oldAttrs: { | |
checkInputs = oldAttrs.checkInputs ++ [ | |
pkgs.some-additional-package | |
]; | |
})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment