forked from rarias/bscpkgs
Avoid nixpkgs reevaluation
The bsc attrset is now extensible: replacing a few bsc packages is very fast. Also we allow the complete bscpkgs to be within other custom overlays (not tested yet).
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
, stages
|
||||
, targetMachine
|
||||
, garlicTools
|
||||
, bsc
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
@@ -82,18 +83,8 @@ rec {
|
||||
|
||||
stdPipeline = stdPipelineOverride {};
|
||||
|
||||
# FIXME: Remove this hack and allow custom nixpkgs
|
||||
bscOverlay = import ../overlay.nix;
|
||||
nixpkgs = import <nixpkgs>;
|
||||
genPkgs = newOverlay: nixpkgs {
|
||||
overlays = [
|
||||
bscOverlay
|
||||
newOverlay
|
||||
];
|
||||
};
|
||||
|
||||
replaceMpi = mpi: genPkgs (self: super: {
|
||||
bsc = super.bsc // { inherit mpi; };
|
||||
replaceMpi = customMpi: bsc.extend (self: super: {
|
||||
mpi = customMpi;
|
||||
});
|
||||
|
||||
# Generate the experimental units
|
||||
|
||||
Reference in New Issue
Block a user