Commit b4ba47a5 authored by Millian Poquet's avatar Millian Poquet
Browse files

nix: use a single /default.nix

This will make simpler the importation of this git repository from Nix code,
as a common hypothesis is that a default.nix is present at its root.

Other nix files could have been kept in each subfolder,
but as their Nix description is small I feel like it will be simpler to maintain
by only using a single file.
parent 675b34ee
......@@ -5,9 +5,30 @@
let
self = rec {
pybatsim-core = kapack.pybatsim-core.overrideAttrs (attrs: rec {
name = "${kapack.pybatsim-core.name}-local";
src = kapack.pkgs.lib.sourceByRegex ./pybatsim-core [
"^pyproject\.toml$"
"^poetry\.lock$"
"^README\.rst$"
"^src$"
"^src/pybatsim$"
"^src/pybatsim/.\+\.py$"
"^src/pybatsim/batsim$"
"^src/pybatsim/batsim/.\+\.py$"
"^src/pybatsim/batsim/cmds$"
"^src/pybatsim/batsim/cmds/.\+\.py$"
"^src/pybatsim/batsim/tools$"
"^src/pybatsim/batsim/tools/.\+\.py$"
"^src/pybatsim/schedulers$"
"^src/pybatsim/schedulers/.\+\.py$"
"^src/pybatsim/schedulers/unMaintained$"
"^src/pybatsim/schedulers/unMaintained/.\+\.py$"
];
});
pybatsim-functional = kapack.pybatsim-functional.overrideAttrs (attrs: rec {
name = "${kapack.pybatsim-functional.name}-local";
src = kapack.pkgs.lib.sourceByRegex ./. [
src = kapack.pkgs.lib.sourceByRegex ./pybatsim-functional [
"^pyproject\.toml$"
"^poetry\.lock$"
"^src$"
......
{ kapack ? import
(fetchTarball "https://github.com/oar-team/nur-kapack/archive/master.tar.gz")
{}
}:
let
self = rec {
pybatsim-core = kapack.pybatsim-core.overrideAttrs (attrs: rec {
name = "${kapack.pybatsim-core.name}-local";
src = kapack.pkgs.lib.sourceByRegex ./. [
"^pyproject\.toml$"
"^poetry\.lock$"
"^README\.rst$"
"^src$"
"^src/pybatsim$"
"^src/pybatsim/.\+\.py$"
"^src/pybatsim/batsim$"
"^src/pybatsim/batsim/.\+\.py$"
"^src/pybatsim/batsim/cmds$"
"^src/pybatsim/batsim/cmds/.\+\.py$"
"^src/pybatsim/batsim/tools$"
"^src/pybatsim/batsim/tools/.\+\.py$"
"^src/pybatsim/schedulers$"
"^src/pybatsim/schedulers/.\+\.py$"
"^src/pybatsim/schedulers/unMaintained$"
"^src/pybatsim/schedulers/unMaintained/.\+\.py$"
];
});
};
in
self
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment