mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
dub: Add dub to interact with the D package registry
This commit is contained in:
parent
ce06d504bb
commit
51b4ce18f4
35
pkgs/development/tools/build-managers/dub/default.nix
Normal file
35
pkgs/development/tools/build-managers/dub/default.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{stdenv, fetchurl, curl, dmd, gcc, unzip}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "dub-0.9.22";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/rejectedsoftware/dub/archive/v0.9.22.tar.gz";
|
||||
sha256 = "0vhn96ybbsfflldlbyc17rmwb7bz21slbm189k5glyfr9nnp4cir";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip curl ];
|
||||
|
||||
propagatedBuildInputs = [ gcc dmd ];
|
||||
|
||||
buildPhase = ''
|
||||
# Avoid that the version file is overwritten
|
||||
substituteInPlace build.sh \
|
||||
--replace source/dub/version_.d /dev/null
|
||||
./build.sh
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
mkdir $out/bin
|
||||
cp bin/dub $out/bin
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Build tool for D projects";
|
||||
homepage = http://code.dlang.org/;
|
||||
license = stdenv.lib.licenses.mit;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
@ -1056,6 +1056,8 @@ let
|
||||
|
||||
dtach = callPackage ../tools/misc/dtach { };
|
||||
|
||||
dub = callPackage ../development/tools/build-managers/dub { };
|
||||
|
||||
duff = callPackage ../tools/filesystems/duff { };
|
||||
|
||||
duo-unix = callPackage ../tools/security/duo-unix { };
|
||||
|
Loading…
Reference in New Issue
Block a user