lol

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).

+11 -8
+11 -8
pkgs/development/tools/build-managers/dub/default.nix
··· 1 - {stdenv, fetchurl, curl, dmd, gcc, unzip }: 1 + { stdenv, fetchFromGitHub, curl, dmd, gcc }: 2 2 3 + let version = "0.9.24"; in 3 4 stdenv.mkDerivation { 4 - name = "dub-0.9.23"; 5 + name = "dub-${version}"; 5 6 6 - src = fetchurl { 7 - url = "https://github.com/D-Programming-Language/dub/archive/v0.9.23.tar.gz"; 8 - sha256 = "7ecbce89c0e48b43705d7c48003394f383556f33562c4b5d884a786cd85814d1"; 7 + src = fetchFromGitHub { 8 + sha256 = "1j2cs2mvaj6bjjicabq6lh97nx0v4b2k6pj4cmywki7hf3i1p8yy"; 9 + rev = "v${version}"; 10 + repo = "dub"; 11 + owner = "D-Programming-Language"; 9 12 }; 10 13 11 - buildInputs = [ unzip curl ]; 12 - 14 + buildInputs = [ curl ]; 13 15 propagatedBuildInputs = [ gcc dmd ]; 14 16 15 17 buildPhase = '' ··· 26 28 ''; 27 29 28 30 meta = with stdenv.lib; { 31 + inherit version; 29 32 description = "Build tool for D projects"; 30 33 homepage = http://code.dlang.org/; 31 - license = stdenv.lib.licenses.mit; 34 + license = licenses.mit; 32 35 platforms = platforms.unix; 33 36 }; 34 37 }