Skip to content

Commit e6265ae

Browse files
committed
Add nix-tools hydra job
1 parent 0f3a84b commit e6265ae

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

flake.nix

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
stripAttrsForHydra
136136
filterDerivations;
137137

138-
in traceHydraJobs ({
138+
flake = {
139139
inherit config;
140140
overlay = self.overlays.combined;
141141
overlays = import ./overlays { sources = inputs; };
@@ -290,7 +290,31 @@
290290
"ghc901"
291291
"ghc921" "ghc922" "ghc923"])
292292
);
293-
});
293+
}; in with (import nixpkgs { system = "x86_64-linux"; });
294+
traceHydraJobs (lib.recursiveUpdate flake {
295+
hydraJobs.nix-tools = pkgs.releaseTools.aggregate {
296+
name = "nix-tools";
297+
constituents = [
298+
"aarch64-darwin.nix-tools-static"
299+
"x86_64-darwin.nix-tools-static"
300+
"x86_64-linux.nix-tools-static"
301+
"x86_64-linux.nix-tools-static-arm64"
302+
"aarch64-darwin.nix-tools-static-no-ifd"
303+
"x86_64-darwin.nix-tools-static-no-ifd"
304+
"x86_64-linux.nix-tools-static-no-ifd"
305+
"x86_64-linux.nix-tools-static-arm64-no-ifd"
306+
(writeText "gitrev" (self.rev or "0000000000000000000000000000000000000000"))
307+
];
308+
};
309+
# hydraJobs.all-nix-tools = runCommand "all-nix-tools" {
310+
# } ''
311+
# mkdir $out
312+
# cp ${flake.hydraJobs.aarch64-darwin.nix-tools-static-no-ifd}/*.zip $out/
313+
# cp ${flake.hydraJobs.x86_64-darwin.nix-tools-static-no-ifd}/*.zip $out/
314+
# cp ${flake.hydraJobs.x86_64-linux.nix-tools-static-no-ifd}/*.zip $out/
315+
# cp ${flake.hydraJobs.x86_64-linux.nix-tools-static-arm64-no-ifd}/*.zip $out/
316+
# '';
317+
});
294318

295319
# --- Flake Local Nix Configuration ----------------------------
296320
nixConfig = {

0 commit comments

Comments
 (0)