1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

hylafaxplus: fix build

This commit is contained in:
ajs124 2021-05-12 00:02:59 +02:00
parent c58155c87c
commit 62b12d749b
2 changed files with 16 additions and 0 deletions

View file

@ -67,6 +67,9 @@ stdenv.mkDerivation {
url = "mirror://sourceforge/hylafax/hylafax-${version}.tar.gz";
inherit sha256;
};
patches = [
./libtiff-4.2.patch # adjust configure check to work with libtiff > 4.1
];
# Note that `configure` (and maybe `faxsetup`) are looking
# for a couple of standard binaries in the `PATH` and
# hardcode their absolute paths in the new package.

View file

@ -0,0 +1,13 @@
diff --git a/configure b/configure
index 7456dcb..90f0e8d 100755
--- a/configure
+++ b/configure
@@ -2583,7 +2583,7 @@ EOF
echo '#define TIFFSTRIPBYTECOUNTS uint32'
echo '#define TIFFVERSION TIFF_VERSION'
echo '#define TIFFHEADER TIFFHeader';;
- 4.[01]) tiff_runlen_t="uint32"
+ 4.[012]) tiff_runlen_t="uint32"
tiff_offset_t="uint64"
echo '#define TIFFSTRIPBYTECOUNTS uint64'
echo '#define TIFFVERSION TIFF_VERSION_CLASSIC'