I am not sure `nix-gitignore.gitignoreSource` fares any better with chroot stores, but so far it’s always been `lib.fileset` that has caused issues with the installer ISO, and a blanket ban on `lib.fileset` seems like the simplest remedy unless it turns out that one of the other source filtering helpers causes issues. This could probably be omitted entirely as it’s just an aid for development convenience, anyway. This reverts commit ba5a5fac7bb68edfb1de329ca037ebe0d4094560. This reverts commit 9ae0f7757760d269c0f3865aed98a3dfaafd6d3d.
33 lines
563 B
Nix
33 lines
563 B
Nix
{
|
|
callPackage,
|
|
nix-gitignore,
|
|
python3Packages,
|
|
}:
|
|
let
|
|
helpers = callPackage ./helpers.nix { };
|
|
pythonPackages = python3Packages;
|
|
|
|
in
|
|
pythonPackages.buildPythonApplication {
|
|
version = "0.1.0";
|
|
pname = "flatten-references-graph";
|
|
|
|
# Note: this uses only ./src/.gitignore
|
|
src = nix-gitignore.gitignoreSource [ ] ./src;
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
igraph
|
|
toolz
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = ''
|
|
${helpers.unittest}/bin/unittest
|
|
'';
|
|
|
|
passthru = {
|
|
dev-shell = callPackage ./dev-shell.nix { };
|
|
};
|
|
}
|