mio-ops/nix/default.nix

32 lines
643 B
Nix
Raw Normal View History

2020-05-13 05:08:41 +00:00
{ 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;
}