sambamba: 0.6.7 -> 0.6.9 (required by newer ldc)

This commit is contained in:
Tyson Whitehead
2019-05-07 14:41:30 -04:00
parent eb3a39c3ec
commit 73d08ba015

View File

@@ -1,40 +1,29 @@
{ stdenv, fetchFromGitHub, ldc { stdenv, fetchFromGitHub, ldc
, bash, python, glibc, which, rdmd, zlib }: , python3, glibc, which, zlib }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.6.7"; version = "0.6.9";
name = "sambamba-${version}"; name = "sambamba-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "biod"; owner = "biod";
repo = "sambamba"; repo = "sambamba";
rev = "v${version}"; # Two commits on top of 0.6.9 release to remove undeaD submodule
sha256 = "06fj6ayr57xcpinmsdmczfay13bbmq2f6zlvknzz9yhgsdkny9w3"; rev = "d67cf50280f7c752d815fdb50fc38fb7bb61f2c9";
sha256 = "1skv12nx84dsxh71ixw605k6pasbjlbwiij2s9382gsw2ya6nhv7";
fetchSubmodules = true; fetchSubmodules = true;
}; };
postPatch = '' installFlags = [ "prefix=$(out)" ];
patchShebangs . preInstall = ''
sed -i '1s,$, undeaD/src/undead/utf.d,' *.rsp mkdir -p "$out"/bin
'';
buildPhase = ''
make sambamba-ldmd2-64
'';
installPhase = ''
mkdir -p $out/bin
mv build/sambamba $out/bin
mv build/sambamba.debug $out/bin
''; '';
buildInputs = [ buildInputs = [
bash python3
python
glibc glibc
ldc ldc
which which
rdmd
zlib zlib
]; ];