mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 21:18:28 +03:00
Merge pull request #113960 from adisbladis/geth-multi-out
go-ethereum: Make multi output
This commit is contained in:
commit
c670db33d7
@ -1,6 +1,12 @@
|
|||||||
{ lib, stdenv, buildGoModule, fetchFromGitHub, libobjc, IOKit }:
|
{ lib, stdenv, buildGoModule, fetchFromGitHub, libobjc, IOKit }:
|
||||||
|
|
||||||
buildGoModule rec {
|
let
|
||||||
|
# A list of binaries to put into separate outputs
|
||||||
|
bins = [
|
||||||
|
"geth"
|
||||||
|
];
|
||||||
|
|
||||||
|
in buildGoModule rec {
|
||||||
pname = "go-ethereum";
|
pname = "go-ethereum";
|
||||||
version = "1.9.25";
|
version = "1.9.25";
|
||||||
|
|
||||||
@ -16,6 +22,13 @@ buildGoModule rec {
|
|||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
outputs = [ "out" ] ++ bins;
|
||||||
|
|
||||||
|
# Move binaries to separate outputs and symlink them back to $out
|
||||||
|
postInstall = lib.concatStringsSep "\n" (
|
||||||
|
builtins.map (bin: "mkdir -p \$${bin}/bin && mv $out/bin/${bin} \$${bin}/bin/ && ln -s \$${bin}/bin/${bin} $out/bin/") bins
|
||||||
|
);
|
||||||
|
|
||||||
subPackages = [
|
subPackages = [
|
||||||
"cmd/abidump"
|
"cmd/abidump"
|
||||||
"cmd/abigen"
|
"cmd/abigen"
|
||||||
@ -40,7 +53,7 @@ buildGoModule rec {
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://geth.ethereum.org/";
|
homepage = "https://geth.ethereum.org/";
|
||||||
description = "Official golang implementation of the Ethereum protocol";
|
description = "Official golang implementation of the Ethereum protocol";
|
||||||
license = with licenses; [ lgpl3 gpl3 ];
|
license = with licenses; [ lgpl3Plus gpl3Plus ];
|
||||||
maintainers = with maintainers; [ adisbladis lionello xrelkd RaghavSood ];
|
maintainers = with maintainers; [ adisbladis lionello xrelkd RaghavSood ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user