mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
36 lines
741 B
Nix
36 lines
741 B
Nix
{ buildGoPackage, go-bindata, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "ngrok";
|
|
version = "1.7.1";
|
|
rev = "${version}";
|
|
|
|
goPackagePath = "ngrok";
|
|
|
|
src = fetchFromGitHub {
|
|
inherit rev;
|
|
owner = "inconshreveable";
|
|
repo = "ngrok";
|
|
sha256 = "1r4nc9knp0nxg4vglg7v7jbyd1nh1j2590l720ahll8a4fbsx5a4";
|
|
};
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
buildInputs = [ go-bindata ];
|
|
|
|
preConfigure = ''
|
|
sed -e '/jteeuwen\/go-bindata/d' \
|
|
-e '/export GOPATH/d' \
|
|
-e 's/go get/#go get/' \
|
|
-e 's|bin/go-bindata|go-bindata|' -i Makefile
|
|
make assets BUILDTAGS=release
|
|
export sourceRoot=$sourceRoot/src/ngrok
|
|
'';
|
|
|
|
buildFlags = [ "-tags release" ];
|
|
|
|
meta = {
|
|
homepage = https://ngrok.com/;
|
|
};
|
|
}
|