mio-ops/nix/default.nix

32 lines
623 B
Nix
Raw Normal View History

2020-07-30 02:58:46 +00:00
{ sources ? import ./sources.nix
2020-05-13 05:08:41 +00:00
, 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: {
2020-07-30 02:58:46 +00:00
sources = (super.sources or {}) // sources;
2020-05-13 05:08:41 +00:00
})
];
overlays =
local-overlays ++
globals ++
upstream-overlays;
in
2020-07-30 02:58:46 +00:00
import sources.nixpkgs {
2020-05-13 05:08:41 +00:00
inherit overlays system crossSystem config;
}