From 3239a0535787625e036af8f59a45a5fe689ff4ca Mon Sep 17 00:00:00 2001 From: Sebastián Mancilla Date: Sat, 9 Jul 2022 23:57:14 -0400 Subject: untrunc-anthwlock: refactor build Use buildPhase to make clear that we need two invocations of 'make' with different targets. Also set IS_RELEASE to 1 to ensure an optimized build is created instead of a debug build (see Makefile). --- pkgs/tools/video/untrunc-anthwlock/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pkgs') diff --git a/pkgs/tools/video/untrunc-anthwlock/default.nix b/pkgs/tools/video/untrunc-anthwlock/default.nix index 4b950fd0f220a..c127bfe8740ed 100644 --- a/pkgs/tools/video/untrunc-anthwlock/default.nix +++ b/pkgs/tools/video/untrunc-anthwlock/default.nix @@ -11,11 +11,13 @@ stdenv.mkDerivation { sha256 = "14i2lq68q990hnm2kkfamlsi67bcml85zl8yjsyxc5h8ncc2f3dp"; }; - buildInputs = [ ffmpeg libui ]; - postBuild = '' - make untrunc-gui + buildPhase = '' + runHook preBuild + make IS_RELEASE=1 untrunc + make IS_RELEASE=1 untrunc-gui + runHook postBuild ''; installPhase = '' -- cgit 1.4.1