dub: 0.9.23 -> 0.9.24
Use fetchFromGitHub, and drop a seemingly spurious 'unzip' dependency (I can find no reference to it in either the source or the resulting binary).
This commit is contained in:
parent
6d42b79b29
commit
ee7df6a566
@ -1,15 +1,17 @@
|
|||||||
{stdenv, fetchurl, curl, dmd, gcc, unzip }:
|
{ stdenv, fetchFromGitHub, curl, dmd, gcc }:
|
||||||
|
|
||||||
|
let version = "0.9.24"; in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "dub-0.9.23";
|
name = "dub-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/D-Programming-Language/dub/archive/v0.9.23.tar.gz";
|
sha256 = "1j2cs2mvaj6bjjicabq6lh97nx0v4b2k6pj4cmywki7hf3i1p8yy";
|
||||||
sha256 = "7ecbce89c0e48b43705d7c48003394f383556f33562c4b5d884a786cd85814d1";
|
rev = "v${version}";
|
||||||
|
repo = "dub";
|
||||||
|
owner = "D-Programming-Language";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ unzip curl ];
|
buildInputs = [ curl ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ gcc dmd ];
|
propagatedBuildInputs = [ gcc dmd ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
@ -26,9 +28,10 @@ stdenv.mkDerivation {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
inherit version;
|
||||||
description = "Build tool for D projects";
|
description = "Build tool for D projects";
|
||||||
homepage = http://code.dlang.org/;
|
homepage = http://code.dlang.org/;
|
||||||
license = stdenv.lib.licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user