about summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-03-14 10:56:43 +0200
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-03-14 10:56:43 +0200
commitd116f70722da14dd3a61e27db6bc680682071a8e (patch)
tree483528cd9d3b9c47e7aedff35b2fa4bd269044ff /pkgs/tools/text
parentb29350a3eab5031017663c4ce070fe1be8255422 (diff)
a2ps: 4.14 -> 4.15.1
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/a2ps/default.nix42
1 files changed, 19 insertions, 23 deletions
diff --git a/pkgs/tools/text/a2ps/default.nix b/pkgs/tools/text/a2ps/default.nix
index d3fe3a7e7058e..2bf62f73c4055 100644
--- a/pkgs/tools/text/a2ps/default.nix
+++ b/pkgs/tools/text/a2ps/default.nix
@@ -1,37 +1,34 @@
-{ lib, stdenv, fetchurl, fetchpatch, autoconf, bison, libpaper, gperf, file, perl }:
+{ lib
+, stdenv
+, fetchurl
+, autoconf
+, bison
+, file
+, perl
+, pkg-config
+, boehmgc
+, gperf
+, libpaper
+}:
 
 stdenv.mkDerivation rec {
   pname = "a2ps";
-  version = "4.14";
+  version = "4.15.1";
 
   src = fetchurl {
     url = "mirror://gnu/a2ps/a2ps-${version}.tar.gz";
-    sha256 = "195k78m1h03m961qn7jr120z815iyb93gwi159p1p9348lyqvbpk";
+    hash = "sha256-l5dwi6AoBa/DtbkeBsuOrJe4WEOpDmbP3mp8Y8oEKyo=";
   };
 
-  patches = [
-    (fetchpatch {
-      url = "https://sources.debian.net/data/main/a/a2ps/1:4.14-1.3/debian/patches/09_CVE-2001-1593.diff";
-      sha256 = "1hrfmvb21zlklmg2fqikgywhqgc4qnvbhx517w87faafrhzhlnh0";
-    })
-    (fetchpatch {
-      url = "https://sources.debian.net/data/main/a/a2ps/1:4.14-1.3/debian/patches/CVE-2014-0466.diff";
-      sha256 = "0grqqsc3m45niac56m19m5gx7gc0m8zvia5iman1l4rlq31shf8s";
-    })
-    (fetchpatch {
-      name = "CVE-2015-8107.patch";
-      url = "https://sources.debian.net/data/main/a/a2ps/1:4.14-1.3/debian/patches/fix-format-security.diff";
-      sha256 = "0pq7zl41gf2kc6ahwyjnzn93vbxb4jc2c5g8j20isp4vw6dqrnwv";
-    })
-  ];
-
   postPatch = ''
     substituteInPlace afm/make_fonts_map.sh --replace "/bin/rm" "rm"
     substituteInPlace tests/defs.in --replace "/bin/rm" "rm"
   '';
 
-  nativeBuildInputs = [ autoconf file bison perl ];
-  buildInputs = [ libpaper gperf ];
+  nativeBuildInputs = [ autoconf bison file perl pkg-config ];
+  buildInputs = [ boehmgc gperf libpaper ];
+
+  strictDeps = true;
 
   meta = with lib; {
     description = "An Anything to PostScript converter and pretty-printer";
@@ -44,7 +41,6 @@ stdenv.mkDerivation rec {
     homepage = "https://www.gnu.org/software/a2ps/";
     license = licenses.gpl3Plus;
     maintainers = [ maintainers.bennofs ];
-    platforms = platforms.linux;
-
+    platforms = platforms.unix;
   };
 }