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 <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2021-10-15 13:52:35 +02:00 committed by tazjin
parent 8301825124
commit 7bde7ca995

View file

@ -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 = {