7 stdenv.mkDerivation (finalAttrs: {
9 version = "unstable-2023-08-10"; # no upstream version yet.
11 src = fetchFromGitHub {
14 rev = "19b3b4087b66963a3699ee45f05ec9ef205d7c0e";
15 hash = "sha256-E1hMtjMuDS2zma2s5hlHby/sroRGhtyZm9gLQ+VztsM=";
18 outputs = [ "out" "dev" ];
20 nativeBuildInputs = [ stb ];
25 make CFLAGS_CONV="-I${stb}/include/stb -O3" qoiconv
33 # Conversion utility for images->qoi. Not usually needed for development.
34 mkdir -p ${placeholder "out"}/bin
35 install qoiconv ${placeholder "out"}/bin
37 # The actual single-header implementation. Nothing to compile, just install.
38 mkdir -p ${placeholder "dev"}/include/
39 install qoi.h ${placeholder "dev"}/include
45 description = "'Quite OK Image Format' for fast, lossless image compression";
46 homepage = "https://qoiformat.org/";
47 license = licenses.mit;
48 maintainers = with maintainers; [ hzeller ];
49 platforms = platforms.all;