about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-10-15T11·52+0200
committertazjin <mail@tazj.in>2021-10-19T11·47+0000
commit7bde7ca9958866015e812478170dfbc770eb30e0 (patch)
tree70683b97dc4efc50917d9bb49cff005f91036559
parent83018251247376b0176ac4d989766966d5fdc0b4 (diff)
fix(3p/dfmt): Enable release builds r/2974
This was supposed to be a new patchset of the previous commit, but due
to ??? the change became submittable in between patchsets and I
submitted it.

Change-Id: I92aca64a9f3eee5b7ede6e9fa37d3b12d3f5d1f7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3729
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
-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 6444940ab0..5ce0d7541c 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 = {