Initial commit

This commit is contained in:
Craige McWhirter 2020-05-13 15:08:41 +10:00
parent f96fbbcc92
commit b43600693c
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA

31
nix/default.nix Normal file
View file

@ -0,0 +1,31 @@
{ sourcePaths ? import ./sources.nix
, system ? builtins.currentSystem
, crossSystem ? null
, config ? {} }:
let
# our own overlays:
local-overlays = [
];
globals =
if builtins.pathExists ../globals.nix
then [(import ../globals.nix)]
else builtins.trace "globals.nix missing, please add symlink" [];
# merge upstream sources with our own:
upstream-overlays = [
( _: super: {
sourcePaths = (super.sourcePaths or {}) // sourcePaths;
})
];
overlays =
local-overlays ++
globals ++
upstream-overlays;
in
import sourcePaths.nixpkgs {
inherit overlays system crossSystem config;
}