Commit de508898 authored by Mynacol's avatar Mynacol
Browse files

leanify: init at unstable-2022-12-04

The stable v0.4.3 from 2015 wouldn't compile for me, so I just chose the
last git commit. According to the changelog, there is v0.4.4, but no git
tag or GitHub release is available.
parent 1faef680
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
}:

stdenv.mkDerivation rec {
  pname = "leanify";
  version = "unstable-2022-12-04";

  src = fetchFromGitHub {
    owner = "JayXon";
    repo = "Leanify";
    rev = "7847668ac5bf0df1d940b674bc8b907bd1b37044";
    hash = "sha256-KxVV7AW9sEfH4YTPDfeJk7fMMGh0eSkECXM/Mv9XqBA=";
  };

  installPhase = ''
    runHook preInstall

    mkdir -p $out/bin
    cp leanify $out/bin/

    runHook postInstall
  '';

  meta = with lib; {
    description = "Lightweight lossless file minifier/optimizer";
    longDescription = ''
      Leanify is a lightweight lossless file minifier/optimizer.
      It removes unnecessary data (debug information, comments, metadata, etc.) and recompress the file to reduce file size.
      It will not reduce image quality at all.
    '';
    homepage = "https://github.com/JayXon/Leanify";
    changelog = "https://github.com/JayXon/Leanify/blob/master/CHANGELOG.md";
    license = licenses.mit;
    maintainers = [ maintainers.mynacol ];
    platforms = platforms.all;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -9448,6 +9448,8 @@ with pkgs;
  l3afpad = callPackage ../applications/editors/l3afpad { };
  leanify = callPackage ../tools/misc/leanify { };
  leatherman = callPackage ../development/libraries/leatherman { };
  ledit = callPackage ../tools/misc/ledit {