depot/third_party/nixpkgs/pkgs/tools/graphics/sng/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

26 lines
692 B
Nix

{ lib, stdenv, fetchurl, libpng, netpbm }:
stdenv.mkDerivation rec {
pname = "sng";
version = "1.1.0";
src = fetchurl {
url = "mirror://sourceforge/sng/sng-${version}.tar.gz";
sha256 = "06a6ydvx9xb3vxvrzdrg3hq0rjwwj9ibr7fyyxjxq6qx1j3mb70i";
};
buildInputs = [ libpng ];
configureFlags = [
"--with-rgbtxt=${netpbm.out}/share/netpbm/misc/rgb.txt"
];
meta = with lib; {
description = "Minilanguage designed to represent the entire contents of a PNG file in an editable form";
homepage = "https://sng.sourceforge.net/";
license = licenses.zlib;
maintainers = [ maintainers.dezgeg ];
platforms = platforms.unix;
mainProgram = "sng";
};
}