qoi: use default Makefile instead of custom buildPhase

Signed-off-by: Marcin Serwin <marcin@serwin.dev>
This commit is contained in:
Marcin Serwin
2026-01-03 16:15:27 +01:00
parent 2c72537913
commit c56727f63a
+8 -8
View File
@@ -1,6 +1,7 @@
{
fetchFromGitHub,
lib,
libpng,
stb,
stdenv,
}:
@@ -21,15 +22,10 @@ stdenv.mkDerivation (finalAttrs: {
"dev"
];
nativeBuildInputs = [ stb ];
strictDeps = true;
enableParalleBuilding = true;
buildPhase = ''
runHook preBuild
make CFLAGS_CONV="-I${stb}/include/stb -O3" qoiconv
runHook postBuild
'';
buildInputs = [ libpng ];
installPhase = ''
runHook preInstall
@@ -45,6 +41,10 @@ stdenv.mkDerivation (finalAttrs: {
runHook postInstall
'';
makeFlags = [
"CFLAGS=-I${lib.getDev stb}/include/stb"
];
meta = {
description = "'Quite OK Image Format' for fast, lossless image compression";
mainProgram = "qoiconv";