arion/nix/default.nix

20 lines
401 B
Nix
Raw Normal View History

/**
* This is the entry-point for all nix execution in this project.
*/
2019-06-15 15:32:59 +03:00
{ nixpkgsSrc ? ./nixpkgs.nix
, system ? null
, ...
}:
import (import ./nixpkgs.nix) ({
# Makes the config pure as well. See <nixpkgs>/top-level/impure.nix:
config = {
};
overlays = [
# all the packages are defined there:
(import ./overlay.nix)
];
2019-06-15 15:32:59 +03:00
} // (if system == null then {} else {
inherit system;
}))