sng: 1.1.0 -> 1.1.1 (#342809)

This commit is contained in:
Aleksana
2024-09-22 19:00:45 +08:00
committed by GitHub
3 changed files with 47 additions and 28 deletions
+47
View File
@@ -0,0 +1,47 @@
{
lib,
asciidoctor,
fetchurl,
libpng,
netpbm,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "sng";
version = "1.1.1";
src = fetchurl {
url = "mirror://sourceforge/sng/sng-${finalAttrs.version}.tar.xz";
hash = "sha256-yb37gPWhfbGquTN7rtZKjr6lwN34KRXGiHuM+4fs5h4=";
};
nativeBuildInputs = [ asciidoctor ];
buildInputs = [ libpng ];
outputs = [
"out"
"man"
];
makeFlags = [
"prefix=$(out)"
"MANDIR=$(outputMan)/share/man"
"RGBTXT=${netpbm.out}/share/netpbm/misc/rgb.txt"
];
strictDeps = true;
meta = {
homepage = "https://sng.sourceforge.net/";
description = "Minilanguage designed to represent the entire contents of a PNG file in an editable form";
license = lib.licenses.zlib;
mainProgram = "sng";
maintainers = with lib.maintainers; [
dezgeg
AndersonTorres
];
platforms = lib.platforms.unix;
};
})
-26
View File
@@ -1,26 +0,0 @@
{ 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";
};
}
-2
View File
@@ -12468,8 +12468,6 @@ with pkgs;
snet = callPackage ../tools/networking/snet { };
sng = callPackage ../tools/graphics/sng { };
snmpcheck = callPackage ../tools/networking/snmpcheck { };
snobol4 = callPackage ../development/interpreters/snobol4 { };