2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, go, fetchFromGitHub }:
|
2015-12-23 00:31:00 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "acbuild-${version}";
|
2016-08-10 22:39:30 +02:00
|
|
|
version = "0.4.0";
|
2015-12-23 00:31:00 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "appc";
|
|
|
|
repo = "acbuild";
|
|
|
|
rev = "v${version}";
|
2016-08-10 22:39:30 +02:00
|
|
|
sha256 = "0s81xlaw75d05b4cidxml978hnxak8parwpnk9clanwqjbj66c7x";
|
2015-12-23 00:31:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ go ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
2016-05-26 20:34:41 +02:00
|
|
|
sed -i -e 's|\git describe --dirty|echo "${version}"|' build
|
2015-12-23 00:31:00 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
patchShebangs build
|
|
|
|
./build
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
mv bin $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A build tool for ACIs";
|
|
|
|
homepage = https://github.com/appc/acbuild;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dgonyeo ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|