Commit f0152c8c authored by Mynacol's avatar Mynacol
Browse files

leanify: 2023-10-19 -> 2023-12-17

As part of this upgrade, don't abort on compiler warnings, e.g.:
```
> clang -Wall -Werror -O3  -Wno-unused-function -I./lib  -c -o lib/zopfli/squeeze.o lib/zopfli/squeeze.c
> lib/zopfli/squeeze.c:341:10: error: variable 'total_length_test' set but not used [-Werror,-Wunused-but-set-variable]
>   size_t total_length_test = 0;
>          ^
> 1 error generated.
> make: *** [<builtin>: lib/zopfli/squeeze.o] Error 1
```
parent 00fabffe
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -6,19 +6,20 @@

stdenv.mkDerivation rec {
  pname = "leanify";
  version = "unstable-2023-10-19";
  version = "unstable-2023-12-17";

  src = fetchFromGitHub {
    owner = "JayXon";
    repo = "Leanify";
    rev = "5511415b02a7669f5fe9b454e5705e8328ab0359";
    hash = "sha256-eOp/SOynh0HUz62Ki5ADRk7FjQY0Gh55ydVnO0MCXAA=";
    rev = "9daa4303cdc03f6b90b72c369e6377c6beb75c39";
    hash = "sha256-fLazKCQnOT3bN3Kz25Q80RLk54EU5U6HCf6kPLcXn9c=";
  };

  postPatch = lib.optionalString stdenv.isDarwin ''
    substituteInPlace Makefile \
      --replace "-flto" "" \
      --replace "lib/LZMA/Alloc.o" "lib/LZMA/CpuArch.o lib/LZMA/Alloc.o"
      --replace-fail "-flto" "" \
      --replace-fail "lib/LZMA/Alloc.o" "lib/LZMA/CpuArch.o lib/LZMA/Alloc.o" \
      --replace-quiet "-Werror" ""
  '';

  buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];