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.
This commit is contained in:
Mynacol 2023-03-26 22:42:47 +02:00
parent 1faef68068
commit de50889848
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,39 @@
{ 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;
};
}

View File

@ -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 {