git.iko.soy/typeable/nixpkgs
on master help sign in
fix #21521
commit087c244c067a1bc881874bda8fd7b4dac2331fb3 authorBenno Fünfstück <benno.fuenfstueck@gmail.com> dateFri 30 Dec 2016, 16:18 (10 years ago) parent59361a2
1 file changed+19
pkgs/development/libraries/libpaper/default.nix+19
pkgs/development/libraries/libpaper/default.nix+19
@@ -9,6 +9,25 @@ stdenv.mkDerivation rec {
99 sha256 = "0zhcx67afb6b5r936w5jmaydj3ks8zh83n9rm5sv3m3k8q8jib1q";
1010 };
1111
12+ # The configure script of libpaper is buggy: it uses AC_SUBST on a headerfile
13+ # to compile sysconfdir into the library. Autoconf however defines sysconfdir
14+ # as "${prefix}/etc", which is not expanded by AC_SUBST so libpaper will look
15+ # for config files in (literally, without expansion) '${prefix}/etc'. Manually
16+ # setting sysconfdir fixes this issue.
17+ preConfigure = ''
18+ configureFlagsArray+=(
19+ "--sysconfdir=$out/etc"
20+ )
21+ '';
22+
23+ # Set the default paper to letter (this is what libpaper uses as default as well,
24+ # if you call getdefaultpapername()).
25+ # The user can still override this with the PAPERCONF environment variable.
26+ postInstall = ''
27+ mkdir -p $out/etc
28+ echo letter > $out/etc/papersize
29+ '';
30+
1231 meta = {
1332 description = "Library for handling paper characteristics";
1433 homepage = "http://packages.debian.org/unstable/source/libpaper";