Switched to niv sources

This commit is contained in:
Craige McWhirter 2020-07-30 12:58:46 +10:00
parent 4f5f1926d4
commit 2a2d05484c
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA
5 changed files with 12 additions and 13 deletions

View file

@ -1,10 +1,17 @@
{ sourcePaths ? import ./nix/sources.nix
{ sources ? import ./nix/sources.nix
, system ? builtins.currentSystem
, crossSystem ? null
, config ? {}
, cardanoNodeProject ? import sources.cardano-node {}
}@args: with import ./nix args; {
shell = mkShell {
buildInputs = [ niv nixops nix ];
inherit (import sources.niv {}) niv;
buildInputs = [
cardanoNodeProject.cardano-cli
niv
nix
nixops
];
NIX_PATH = "nixpkgs=${path}";
NIXOPS_DEPLOYMENT = "${globals.deploymentName}";
};

View file

@ -1,4 +1,4 @@
{ sourcePaths ? import ./sources.nix
{ sources ? import ./sources.nix
, system ? builtins.currentSystem
, crossSystem ? null
, config ? {} }:
@ -17,7 +17,7 @@ let
upstream-overlays = [
( _: super: {
sourcePaths = (super.sourcePaths or {}) // sourcePaths;
sources = (super.sources or {}) // sources;
})
];
@ -26,6 +26,6 @@ let
globals ++
upstream-overlays;
in
import sourcePaths.nixpkgs {
import sources.nixpkgs {
inherit overlays system crossSystem config;
}

View file

@ -1,2 +0,0 @@
sourcePaths: map import (import ./overlay-list.nix) ++
[(self: super: { inherit sourcePaths; })]

View file

@ -1,3 +0,0 @@
self: super: {
inherit (import self.sourcePaths.niv {}) niv;
}

View file

@ -1,3 +0,0 @@
[
./niv.nix
]