mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-08 06:28:50 +03:00
goa: fix and clean
This commit is contained in:
parent
e554935f51
commit
61d426085f
@ -8,32 +8,12 @@ buildGoPackage rec {
|
|||||||
subPackages = [ "goagen" ];
|
subPackages = [ "goagen" ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
rev = "v${version}";
|
|
||||||
owner = "goadesign";
|
owner = "goadesign";
|
||||||
repo = "goa";
|
repo = "goa";
|
||||||
|
rev = "v${version}";
|
||||||
sha256 = "13401jf907z3qh11h9clb3z0i0fshwkmhx11fq9z6vx01x8x2in1";
|
sha256 = "13401jf907z3qh11h9clb3z0i0fshwkmhx11fq9z6vx01x8x2in1";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ makeWrapper ];
|
|
||||||
|
|
||||||
allowGoReference = true;
|
|
||||||
|
|
||||||
outputs = [ "out" ];
|
|
||||||
|
|
||||||
preInstall = ''
|
|
||||||
export bin=$out
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
# goagen needs GOPATH to be set
|
|
||||||
wrapProgram $out/bin/goagen \
|
|
||||||
--prefix GOPATH ":" $out/share/go
|
|
||||||
|
|
||||||
# and it needs access to all its dependancies
|
|
||||||
mkdir -p $out/share/go
|
|
||||||
cp -Rv $NIX_BUILD_TOP/go/{pkg,src} $out/share/go/
|
|
||||||
'';
|
|
||||||
|
|
||||||
goDeps = ./deps.nix;
|
goDeps = ./deps.nix;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user