summaryrefslogtreecommitdiffhomepage
path: root/org/config_nix.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2023-07-08 16:02:11 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2023-07-09 20:43:55 -0400
commit5277e7def7b167021ae49a3d101926b40b98e745 (patch)
treeb20fee98c3dc04cbf783959e24e8606ae8a3d774 /org/config_nix.org
parentflake.nix (local filesystem) spine overlays (diff)
flake nix build dub, set HOME, dub >= 1.31.0 fix
- fixes dub >= 1.31.0 build failure, attempted to build in /homeless-shelter
Diffstat (limited to 'org/config_nix.org')
-rw-r--r--org/config_nix.org12
1 files changed, 12 insertions, 0 deletions
diff --git a/org/config_nix.org b/org/config_nix.org
index fbec722..fb282b3 100644
--- a/org/config_nix.org
+++ b/org/config_nix.org
@@ -88,6 +88,9 @@
inherit devEnv;
buildInputs = [sqlite];
nativeBuildInputs = [dub ldc gnumake];
+ preBuild = ''
+ export HOME=$(pwd)
+ '';
buildPhase = ''
runHook preBuild
for DC_ in dmd ldmd2 ldc2 gdc gdmd; do
@@ -114,6 +117,9 @@
inherit devEnv;
buildInputs = [sqlite];
nativeBuildInputs = [dub dmd gnumake];
+ preBuild = ''
+ export HOME=$(pwd)
+ '';
buildPhase = ''
runHook preBuild
dub build --cache=local --compiler=$(type -P dmd) --build=dmd --combined --skip-registry=all
@@ -133,6 +139,9 @@
inherit devEnv;
buildInputs = [sqlite];
nativeBuildInputs = [dub ldc gnumake];
+ preBuild = ''
+ export HOME=$(pwd)
+ '';
buildPhase = ''
runHook preBuild
dub build --cache=local --compiler=$(type -P ldc2) --build=ldc2 --combined --skip-registry=all
@@ -152,6 +161,9 @@
inherit devEnv;
buildInputs = with pkgs; [sqlite];
nativeBuildInputs = with pkgs; [dub ldc gnumake];
+ preBuild = ''
+ export HOME=$(pwd)
+ '';
buildPhase = ''
runHook preBuild
dub build --cache=local --compiler=$(type -P ldc2) --build=ldc2 --combined --skip-registry=all