File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ diff --git a/flake.nix b/flake.nix
2
+ index 0804d9ff3..64362d27d 100644
3
+ --- a/flake.nix
4
+ +++ b/flake.nix
5
+ @@ -305,6 +305,8 @@
6
+ internal.roots.project = windowsProject.roots;
7
+ variants = mapAttrs (_: v: removeAttrs v.windows ["variants"]) ciJobsVariants;
8
+ });
9
+ + } // optionalAttrs (system == "aarch64-linux") {
10
+ + linux-arm64.projectExes = collectExes project;
11
+ } // optionalAttrs (system == "x86_64-darwin") {
12
+ native = lib.filterAttrs
13
+ (n: _:
Original file line number Diff line number Diff line change 556
556
original = inputs . ${ input } ;
557
557
supportedSystemsPath = "nix/supported-systems.nix" ;
558
558
extraPatch = ''
559
+ (
560
+ cd $out
561
+ patch -p1 -i ${ ./cardano-node-8.9.1--expose-projectExes.patch }
562
+ )
559
563
sed -r '
560
564
s/"ghc8107"/"ghc963"/g
561
565
s/"-fexternal-interpreter"//g
569
573
# { name = "${input}--cardano-submit-api"; value = theFlake.packages.${system}.cardano-submit-api; }
570
574
{ name = "${ input } --oci" ; value = retagOCI "cardano-node" version theFlake . legacyPackages . ${ system } . dockerImage ; }
571
575
{ name = "${ input } --oci-submit-api" ; value = retagOCI "cardano-submit-api" version theFlake . legacyPackages . ${ system } . submitApiDockerImage ; }
576
+ {
577
+ name = "${ input } --tar" ;
578
+ value = let
579
+ pkgs = theFlake . inputs . nixpkgs . legacyPackages . ${ system } ;
580
+ nix-bundle-exe-with-symlinks = pkgs . runCommand "nix-bundle-exe-with-symlinks" { } ''
581
+ cp -r ${ inputs . nix-bundle-exe } $out
582
+ chmod -R +w $out
583
+ sed -r "s/find '/find -L '/g" -i $out/default.nix
584
+ '' ;
585
+ nix-bundle-exe = import nix-bundle-exe-with-symlinks { pkgs = pkgs ; } ;
586
+ allExes = pkgs . buildEnv {
587
+ name = "cardano-tools" ;
588
+ paths = builtins . attrValues theFlake . hydraJobs . ${ system } . linux-arm64 . projectExes ;
589
+ pathsToLink = [ "/bin" ] ;
590
+ } ;
591
+ bundle = nix-bundle-exe allExes ;
592
+ in pkgs . runCommand "${ bundle . name } -tar" { } ''
593
+ mkdir -p $out
594
+ tar -czvf $out/cardano-node-${ version } -${ system } .tar.gz -C ${ bundle } .
595
+ '' ;
596
+ }
572
597
] )
573
598
574
599
) ;
You can’t perform that action at this time.
0 commit comments