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";