From c56727f63a4aa0cb362a8eb51aa4c651987a7883 Mon Sep 17 00:00:00 2001 From: Marcin Serwin Date: Sat, 3 Jan 2026 11:07:00 +0100 Subject: [PATCH] qoi: use default Makefile instead of custom buildPhase Signed-off-by: Marcin Serwin --- pkgs/by-name/qo/qoi/package.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/qo/qoi/package.nix b/pkgs/by-name/qo/qoi/package.nix index a95fd712eb1d..8d28b7406898 100644 --- a/pkgs/by-name/qo/qoi/package.nix +++ b/pkgs/by-name/qo/qoi/package.nix @@ -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";