From 65242d4a744f818e0ca459e711793fa9c2b55238 Mon Sep 17 00:00:00 2001 From: Pascal Wittmann Date: Sat, 4 Oct 2014 22:34:25 +0200 Subject: [PATCH] pdfjam: update from 1.20 to 2.08 --- pkgs/tools/typesetting/pdfjam/builder.sh | 2 +- pkgs/tools/typesetting/pdfjam/default.nix | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/typesetting/pdfjam/builder.sh b/pkgs/tools/typesetting/pdfjam/builder.sh index 9fcb80f6866..720ddeae78d 100644 --- a/pkgs/tools/typesetting/pdfjam/builder.sh +++ b/pkgs/tools/typesetting/pdfjam/builder.sh @@ -3,7 +3,7 @@ source $stdenv/setup tar zxvf $src mkdir -p $out/bin -cp pdfjam/scripts/* $out/bin +cp pdfjam/bin/* $out/bin mkdir -p $out/man/man1 cp pdfjam/man1/* $out/man/man1 diff --git a/pkgs/tools/typesetting/pdfjam/default.nix b/pkgs/tools/typesetting/pdfjam/default.nix index 1b8d7b5e8d8..f8eafb221a3 100644 --- a/pkgs/tools/typesetting/pdfjam/default.nix +++ b/pkgs/tools/typesetting/pdfjam/default.nix @@ -1,10 +1,17 @@ -{stdenv, fetchurl}: stdenv.mkDerivation { - name = "pdfjam-1.20"; +{stdenv, fetchurl}: + +stdenv.mkDerivation rec { + name = "pdfjam-${version}"; + version = "2.08"; + url-version = stdenv.lib.replaceChars ["."] [""] version; + builder = ./builder.sh; + src = fetchurl { - url = http://www.warwick.ac.uk/go/pdfjam/pdfjam_1.20.tgz; - sha256 = "05g3mx7mb6h15ivbv0f53r369xphy8ad8a2xblpnk9mrnlrkaxy9"; + url = "http://go.warwick.ac.uk/pdfjam/pdfjam_${url-version}.tgz"; + sha256 = "1wy0xhcy27d7agby598s20ba48s4yg5qkzr6anc6q1xdryccacf7"; }; + meta = with stdenv.lib; { platforms = platforms.linux; maintainers = [ maintainers.mornfall ];