From 50121730cae36c893be51dedd41d2113e3c5a653 Mon Sep 17 00:00:00 2001 From: zendo Date: Sun, 24 Apr 2022 23:26:01 +0800 Subject: [PATCH] pngtools: init at unstable-2022-03-14 (#169875) --- pkgs/tools/graphics/pngtools/default.nix | 23 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/tools/graphics/pngtools/default.nix diff --git a/pkgs/tools/graphics/pngtools/default.nix b/pkgs/tools/graphics/pngtools/default.nix new file mode 100644 index 000000000000..563c8af50ae8 --- /dev/null +++ b/pkgs/tools/graphics/pngtools/default.nix @@ -0,0 +1,23 @@ +{ lib, stdenv, libpng12, fetchFromGitHub }: + +stdenv.mkDerivation { + pname = "pngtools"; + version = "unstable-2022-03-14"; + + src = fetchFromGitHub { + owner = "mikalstill"; + repo = "pngtools"; + rev = "1ccca3a0f3f6882661bbafbfb62feb774ca195d1"; + sha256 = "sha256-W1XofOVTyfA7IbxOnTkWdOOZ00gZ4e0GOYl7nMtLIJk="; + }; + + buildInputs = [ libpng12 ]; + + meta = with lib; { + homepage = "https://github.com/mikalstill/pngtools"; + description = "PNG manipulation tools"; + maintainers = with maintainers; [ zendo ]; + license = licenses.gpl2Only; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f07fe3b5235a..792b61ab0df2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9341,6 +9341,8 @@ with pkgs; libpng = libpng12; }; + pngtools = callPackage ../tools/graphics/pngtools { }; + pngpp = callPackage ../development/libraries/png++ { }; pngquant = callPackage ../tools/graphics/pngquant { };