From 144d13cf2cc6de28f8abe9e9e8c98f28ccf8fc59 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Sat, 7 Nov 2015 14:49:17 +0100 Subject: [PATCH] goPackages.acbuild: init at 0.1.1 --- pkgs/top-level/go-packages.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pkgs/top-level/go-packages.nix b/pkgs/top-level/go-packages.nix index 0cb03b3cbfb0..7bfbe2fc8aea 100644 --- a/pkgs/top-level/go-packages.nix +++ b/pkgs/top-level/go-packages.nix @@ -3151,4 +3151,24 @@ let sha256 = "0zc1ah5cvaqa3zw0ska89a40x445vwl1ixz8v42xi3zicx16ibwz"; }; + acbuild = stdenv.mkDerivation rec { + version = "0.1.1"; + name = "acbuild-${version}"; + src = fetchFromGitHub { + rev = "beae3971de6b2c35807a98ef1d0fa3167cc3a4a8"; + owner = "appc"; + repo = "acbuild"; + sha256 = "1mjmg2xj190dypp2yqslrx8xhwcyrrz38xxp0rig4fr60i2qy41j"; + }; + buildInputs = [ go ]; + patchPhase = '' + sed -i -e 's|\$(git describe --dirty)|"${version}"|' build + sed -i -e 's|\$GOBIN/acbuild|$out/bin/acbuild|' build + ''; + installPhase = '' + mkdir -p $out/bin + ./build + ''; + }; + }; in self