From 7bde7ca9958866015e812478170dfbc770eb30e0 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 15 Oct 2021 13:52:35 +0200 Subject: fix(3p/dfmt): Enable release builds 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 --- third_party/dfmt/default.nix | 7 ++++--- 1 file 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 = { -- cgit 1.4.1