2015-12-22 23:31:00 +00:00
|
|
|
{ stdenv, lib, go, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "acbuild-${version}";
|
2016-05-26 19:34:41 +01:00
|
|
|
version = "0.3.0";
|
2015-12-22 23:31:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "appc";
|
|
|
|
repo = "acbuild";
|
|
|
|
rev = "v${version}";
|
2016-05-26 19:34:41 +01:00
|
|
|
sha256 = "19f2fybz4m7d5sp1v8zkl26ig4dacr27qan9h5lxyn2v7a5z34rc";
|
2015-12-22 23:31:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ go ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
2016-05-26 19:34:41 +01:00
|
|
|
sed -i -e 's|\git describe --dirty|echo "${version}"|' build
|
2015-12-22 23:31:00 +00: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;
|
|
|
|
};
|
|
|
|
}
|