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).
This commit is contained in:
parent
cf88ead89d
commit
3239a05357
1 changed files with 5 additions and 3 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue