forked from rarias/bscpkgs
Compare commits
12 Commits
d397d8aaf3
...
f01072b076
| Author | SHA1 | Date | |
|---|---|---|---|
|
f01072b076
|
|||
|
82741634d8
|
|||
|
29df0fd8ba
|
|||
|
3d89928370
|
|||
|
0c44118063
|
|||
|
85cbd3ba9b
|
|||
|
dd6de37f60
|
|||
|
70e2b27f72
|
|||
|
97a68af68d
|
|||
|
4f4e0a062e
|
|||
|
e630aefe92
|
|||
|
e8b1503cc0
|
10
overlay.nix
10
overlay.nix
@@ -9,7 +9,7 @@ let
|
||||
mkDeps = name: pkgs: final.runCommand name { }
|
||||
"printf '%s\n' ${toString (collect (x: x ? outPath) pkgs)} > $out";
|
||||
|
||||
_bscPkgs = {
|
||||
bscPkgs = {
|
||||
bench6 = callPackage ./pkgs/bench6/default.nix { };
|
||||
bigotes = callPackage ./pkgs/bigotes/default.nix { };
|
||||
clangOmpss2 = callPackage ./pkgs/llvm-ompss2/default.nix { };
|
||||
@@ -49,8 +49,10 @@ let
|
||||
wxparaver = callPackage ./pkgs/paraver/default.nix { };
|
||||
};
|
||||
|
||||
mkStrict = drv: if (isDerivation drv && drv ? overrideAttrs) then drv.overrideAttrs { strictDeps = true; } else drv;
|
||||
bscPkgs = mapAttrs (_: mkStrict) _bscPkgs;
|
||||
allPkgs = collect isDerivation bscPkgs;
|
||||
|
||||
mkStrict = pkg: if pkg ? overrideAttrs then pkg.overrideAttrs { strictDeps = true; } else pkg;
|
||||
strictPkgs = map mkStrict allPkgs;
|
||||
|
||||
in bscPkgs // {
|
||||
# Prevent accidental usage of bsc attribute
|
||||
@@ -92,7 +94,7 @@ in bscPkgs // {
|
||||
};
|
||||
|
||||
pkgs = final.runCommand "ci-pkgs" { }
|
||||
"printf '%s\n' ${toString (collect isDerivation bscPkgs)} > $out";
|
||||
"printf '%s\n' ${toString strictPkgs} > $out";
|
||||
|
||||
tests = final.runCommand "ci-tests" { }
|
||||
"printf '%s\n' ${toString (collect isDerivation final.bsc-ci.test)} > $out";
|
||||
|
||||
Reference in New Issue
Block a user