7 stdenv.mkDerivation rec {
9 version = "unstable-2023-12-17";
11 src = fetchFromGitHub {
14 rev = "9daa4303cdc03f6b90b72c369e6377c6beb75c39";
15 hash = "sha256-fLazKCQnOT3bN3Kz25Q80RLk54EU5U6HCf6kPLcXn9c=";
18 postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
19 substituteInPlace Makefile \
20 --replace-fail "-flto" "" \
21 --replace-fail "lib/LZMA/Alloc.o" "lib/LZMA/CpuArch.o lib/LZMA/Alloc.o" \
22 --replace-quiet "-Werror" ""
25 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
45 description = "Lightweight lossless file minifier/optimizer";
47 Leanify is a lightweight lossless file minifier/optimizer.
48 It removes unnecessary data (debug information, comments, metadata, etc.) and recompress the file to reduce file size.
49 It will not reduce image quality at all.
51 homepage = "https://github.com/JayXon/Leanify";
52 changelog = "https://github.com/JayXon/Leanify/blob/master/CHANGELOG.md";
53 license = licenses.mit;
54 maintainers = [ maintainers.mynacol ];
55 platforms = platforms.all;
56 mainProgram = "leanify";