diff options
author | Mynacol <Mynacol@users.noreply.github.com> | 2023-03-26 22:42:47 +0200 |
---|---|---|
committer | Mynacol <Mynacol@users.noreply.github.com> | 2023-03-26 23:14:47 +0200 |
commit | de5088984835d244a2a02da82f675c77adfb0c7b (patch) | |
tree | 6fcf97fed53a1b1168a26d4bc3903e59bdcba653 /pkgs/tools/misc/leanify | |
parent | 1faef68068582fd43fefcd8149a95707bfea5015 (diff) | |
download | nixpkgs-de5088984835d244a2a02da82f675c77adfb0c7b.tar nixpkgs-de5088984835d244a2a02da82f675c77adfb0c7b.tar.gz nixpkgs-de5088984835d244a2a02da82f675c77adfb0c7b.tar.bz2 nixpkgs-de5088984835d244a2a02da82f675c77adfb0c7b.tar.lz nixpkgs-de5088984835d244a2a02da82f675c77adfb0c7b.tar.xz nixpkgs-de5088984835d244a2a02da82f675c77adfb0c7b.tar.zst nixpkgs-de5088984835d244a2a02da82f675c77adfb0c7b.zip |
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.
Diffstat (limited to 'pkgs/tools/misc/leanify')
-rw-r--r-- | pkgs/tools/misc/leanify/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/tools/misc/leanify/default.nix b/pkgs/tools/misc/leanify/default.nix new file mode 100644 index 00000000000..d4f8d30aebb --- /dev/null +++ b/pkgs/tools/misc/leanify/default.nix @@ -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; + }; +} |