diff options
author | Sebastián Mancilla <smancill@smancill.dev> | 2022-07-09 23:57:14 -0400 |
---|---|---|
committer | Sebastián Mancilla <smancill@smancill.dev> | 2022-07-09 23:57:14 -0400 |
commit | 3239a0535787625e036af8f59a45a5fe689ff4ca (patch) | |
tree | b1cb566c8b2bf3a62469f41d392cc79782189e7c /pkgs | |
parent | cf88ead89d554904e2b29aef73df98d9bd336523 (diff) |
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).
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/video/untrunc-anthwlock/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
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 = '' |