about summary refs log tree commit diff
path: root/third_party/dfmt
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/dfmt')
-rw-r--r--third_party/dfmt/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/third_party/dfmt/default.nix b/third_party/dfmt/default.nix
index 6444940ab017..5ce0d7541c25 100644
--- a/third_party/dfmt/default.nix
+++ b/third_party/dfmt/default.nix
@@ -17,14 +17,15 @@ pkgs.stdenv.mkDerivation rec {
     dmd
 
     # fake git that will be used to fetch the version string
-    (pkgs.writeShellScriptBin "git" ''
-      echo 'v${version}'
-    '')
+    (pkgs.writeShellScriptBin "git" "echo 'v${version}'")
   ];
 
+  DFLAGS = "-release";
+
   installPhase = ''
     mkdir -p $out/bin
     cp bin/dfmt $out/bin/
+    strip -s $out/bin/dfmt
   '';
 
   meta = {