3
0
Fork 0
forked from mirrors/nixpkgs

dub: 0.9.24 -> 0.9.25

This commit is contained in:
Tobias Geerinckx-Rice 2016-05-23 01:31:58 +02:00
parent e591789b04
commit 2964212b45
No known key found for this signature in database
GPG key ID: 91CCDB9B48541B99

View file

@ -1,11 +1,11 @@
{ stdenv, fetchFromGitHub, curl, dmd, gcc }: { stdenv, fetchFromGitHub, curl, dmd, gcc }:
let version = "0.9.24"; in stdenv.mkDerivation rec {
stdenv.mkDerivation {
name = "dub-${version}"; name = "dub-${version}";
version = "0.9.25";
src = fetchFromGitHub { src = fetchFromGitHub {
sha256 = "1j2cs2mvaj6bjjicabq6lh97nx0v4b2k6pj4cmywki7hf3i1p8yy"; sha256 = "0cb4kx72fvk6vfqkk0mrp6fvv512xhw03dq2dn9lng0daydvdcim";
rev = "v${version}"; rev = "v${version}";
repo = "dub"; repo = "dub";
owner = "D-Programming-Language"; owner = "D-Programming-Language";
@ -15,16 +15,17 @@ stdenv.mkDerivation {
propagatedBuildInputs = [ gcc dmd ]; propagatedBuildInputs = [ gcc dmd ];
buildPhase = '' buildPhase = ''
# Avoid that the version file is overwritten # Avoid that the version file is overwritten
substituteInPlace build.sh \ substituteInPlace build.sh \
--replace source/dub/version_.d /dev/null --replace source/dub/version_.d /dev/null
./build.sh patchShebangs ./build.sh
./build.sh
''; '';
installPhase = '' installPhase = ''
mkdir $out mkdir $out
mkdir $out/bin mkdir $out/bin
cp bin/dub $out/bin cp bin/dub $out/bin
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {