aboutsummaryrefslogtreecommitdiffhomepage
path: root/nixDevEnv/dub/mkDub-ldc.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixDevEnv/dub/mkDub-ldc.nix')
-rw-r--r--nixDevEnv/dub/mkDub-ldc.nix12
1 files changed, 4 insertions, 8 deletions
diff --git a/nixDevEnv/dub/mkDub-ldc.nix b/nixDevEnv/dub/mkDub-ldc.nix
index 8fe20a3..a9cbb82 100644
--- a/nixDevEnv/dub/mkDub-ldc.nix
+++ b/nixDevEnv/dub/mkDub-ldc.nix
@@ -1,8 +1,5 @@
{ pkgs ? import <nixpkgs> {},
stdenv ? pkgs.stdenv,
- rdmd ? pkgs.rdmd,
- #dmd ? pkgs.dmd,
- #gcc ? pkgs.gcc,
ldc ? pkgs.ldc,
dub ? pkgs.dub
}:
@@ -23,7 +20,7 @@ let
fromDub = dubDep: mkDerivation rec {
name = "${src.name}-${version}";
version = rev-to-version dubDep.fetch.rev;
- nativeBuildInputs = [ rdmd ldc dub ];
+ nativeBuildInputs = [ ldc dub ];
src = dep2src dubDep;
buildPhase = ''
@@ -49,7 +46,7 @@ let
targetOf = package: "${package.targetPath or "."}/${package.targetName or package.name}";
# Remove reference to build tools and library sources
- disallowedReferences = deps: [ ldc rdmd dub ] ++ builtins.map dep2src deps;
+ disallowedReferences = deps: [ ldc dub ] ++ builtins.map dep2src deps;
removeExpr = refs: ''remove-references-to ${lib.concatMapStrings (ref: " -t ${ref}") refs}'';
@@ -69,11 +66,11 @@ in {
pname = package.name;
- nativeBuildInputs = [ rdmd ldc dub pkgs.removeReferencesTo ] ++ nativeBuildInputs;
+ nativeBuildInputs = [ ldc dub pkgs.removeReferencesTo ] ++ nativeBuildInputs;
disallowedReferences = disallowedReferences deps;
passthru = passthru // {
- inherit dub ldc rdmd pkgs;
+ inherit dub ldc pkgs;
};
src = lib.cleanSourceWith {
@@ -91,7 +88,6 @@ in {
export HOME=$PWD
${lib.concatMapStringsSep "\n" dub-add-local deps}
dub build --compiler=ldc2 --build=release --combined --skip-registry=all
- #dub build -b optimize -b inline --combined --skip-registry=all
runHook postBuild
'';