Merge pull request #113960 from adisbladis/geth-multi-out

go-ethereum: Make multi output

authored by

adisbladis and committed by
GitHub
c670db33 40bc4f78

+15 -2
+15 -2
pkgs/applications/blockchains/go-ethereum.nix
··· 1 { lib, stdenv, buildGoModule, fetchFromGitHub, libobjc, IOKit }: 2 3 - buildGoModule rec { 4 pname = "go-ethereum"; 5 version = "1.9.25"; 6 ··· 16 17 doCheck = false; 18 19 subPackages = [ 20 "cmd/abidump" 21 "cmd/abigen" ··· 40 meta = with lib; { 41 homepage = "https://geth.ethereum.org/"; 42 description = "Official golang implementation of the Ethereum protocol"; 43 - license = with licenses; [ lgpl3 gpl3 ]; 44 maintainers = with maintainers; [ adisbladis lionello xrelkd RaghavSood ]; 45 }; 46 }
··· 1 { lib, stdenv, buildGoModule, fetchFromGitHub, libobjc, IOKit }: 2 3 + let 4 + # A list of binaries to put into separate outputs 5 + bins = [ 6 + "geth" 7 + ]; 8 + 9 + in buildGoModule rec { 10 pname = "go-ethereum"; 11 version = "1.9.25"; 12 ··· 22 23 doCheck = false; 24 25 + outputs = [ "out" ] ++ bins; 26 + 27 + # Move binaries to separate outputs and symlink them back to $out 28 + postInstall = lib.concatStringsSep "\n" ( 29 + builtins.map (bin: "mkdir -p \$${bin}/bin && mv $out/bin/${bin} \$${bin}/bin/ && ln -s \$${bin}/bin/${bin} $out/bin/") bins 30 + ); 31 + 32 subPackages = [ 33 "cmd/abidump" 34 "cmd/abigen" ··· 53 meta = with lib; { 54 homepage = "https://geth.ethereum.org/"; 55 description = "Official golang implementation of the Ethereum protocol"; 56 + license = with licenses; [ lgpl3Plus gpl3Plus ]; 57 maintainers = with maintainers; [ adisbladis lionello xrelkd RaghavSood ]; 58 }; 59 }