summary refs log tree commit diff
path: root/pkgs/tools/graphics/sng/default.nix
blob: c7d2f49406b778c318d9463872b9419983eddb50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ 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}/share/netpbm/misc/rgb.txt"
  ];

  meta = with stdenv.lib; {
    description = "Minilanguage designed to represent the entire contents of a PNG file in an editable form";
    homepage = http://sng.sourceforge.net/;
    license = licenses.zlib;
    maintainers = [ maintainers.dezgeg ];
    platforms = platforms.unix;
  };
}