From ebb060c3516a4946ae6e9e63dada6ade5bcf9ef2 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sun, 25 Oct 2015 16:16:02 +0200 Subject: [PATCH] sng: init at 1.0.6 --- pkgs/tools/graphics/sng/default.nix | 25 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/tools/graphics/sng/default.nix diff --git a/pkgs/tools/graphics/sng/default.nix b/pkgs/tools/graphics/sng/default.nix new file mode 100644 index 000000000000..d9b06c2adf35 --- /dev/null +++ b/pkgs/tools/graphics/sng/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchurl, libpng, netpbm }: + +stdenv.mkDerivation rec { + name = "sng-${version}"; + version = "1.0.6"; + + src = fetchurl { + url = "mirror://sourceforge/sng/sng-${version}.tar.gz"; + sha256 = "04ym62qh8blsqigm3kr1shj9pn62y373wdaavk74rzwjzlhwhmq6"; + }; + + 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.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8a694ccca36e..90a2ab3fa734 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3022,6 +3022,10 @@ let snabb = callPackage ../tools/networking/snabb { } ; + sng = callPackage ../tools/graphics/sng { + libpng = libpng12; + }; + snort = callPackage ../applications/networking/ids/snort { }; solr = callPackage ../servers/search/solr { };