Skip to content

Commit 0ca2df0

Browse files
committed
Trace hydra eval and add windows-secp256k1 back
1 parent c917836 commit 0ca2df0

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

release.nix

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@
33
{
44
supportedSystems ? ["x86_64-linux" "x86_64-darwin"]
55
, include ? (compiler-nix-name: true)
6-
}: let
6+
}:
7+
let
8+
traceNames = prefix: builtins.mapAttrs (n: v:
9+
if builtins.isAttrs v
10+
then if v ? type && v.type == "derivation"
11+
then __trace (prefix + n) v
12+
else traceNames (prefix + n + ".") v
13+
else v);
14+
715
defaultNix = import ./. {};
816

917
inherit (defaultNix) pkgs;
@@ -20,10 +28,23 @@
2028

2129
jobs = lib.getAttrs supportedSystems (filterCiJobs defaultNix.ciJobs);
2230

31+
windows-secp256k1 =
32+
let
33+
pkgs = (import ./. {}).pkgs-unstable;
34+
makeBinDist = drv: pkgs.runCommand drv.name {
35+
nativeBuildInputs = [ pkgs.zip ];
36+
} ''
37+
mkdir -p $out/nix-support
38+
cp -r ${drv}/* .
39+
chmod -R +w .
40+
zip -r $out/${drv.name}.zip .
41+
echo "file binary-dist $out/${drv.name}.zip" > $out/nix-support/hydra-build-products
42+
'';
43+
in makeBinDist pkgs.pkgsCross.mingwW64.secp256k1;
2344
required = defaultNix.pkgs.releaseTools.aggregate {
2445
name = "github-required";
2546
meta.description = "All jobs required to pass CI";
2647
constituents = lib.collect lib.isDerivation jobs;
2748
};
2849
in
29-
jobs // { inherit required; }
50+
traceNames "job " (jobs // { inherit windows-secp256k1 required; })

0 commit comments

Comments
 (0)