python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / gtklp / default.nix
blob8eafd98e267f52fa4541fb225633d0168f910c23
1 { stdenv, lib, fetchurl
2 , autoreconfHook, libtool, pkg-config
3 , gtk2, glib, cups, gettext, openssl
4 }:
6 stdenv.mkDerivation rec {
7   pname = "gtklp";
8   version = "1.3.4";
10   src = fetchurl {
11     url = "mirror://sourceforge/${pname}/${pname}-${version}.src.tar.gz";
12     sha256 = "1arvnnvar22ipgnzqqq8xh0kkwyf71q2sfsf0crajpsr8a8601xy";
13   };
15   nativeBuildInputs = [
16     pkg-config
17     autoreconfHook
18   ];
20   buildInputs = [
21     cups
22     gettext
23     glib
24     gtk2
25     libtool
26     openssl
27   ];
29   patches = [
30     ./patches/mdv-fix-str-fmt.patch
31     ./patches/autoconf.patch
32   ];
34   # Workaround build failure on -fno-common toolchains:
35   #   ld: libgtklp.a(libgtklp.o):libgtklp/libgtklp.h:83: multiple definition of `progressBar';
36   #     file.o:libgtklp/libgtklp.h:83: first defined here
37   NIX_CFLAGS_COMPILE = "-fcommon";
39   preConfigure = ''
40     substituteInPlace include/defaults.h --replace "netscape" "firefox"
41     substituteInPlace include/defaults.h --replace "http://localhost:631/sum.html#STANDARD_OPTIONS" \
42                                                    "http://localhost:631/help/"
43   '';
45   preInstall = ''
46     install -D -m0644 -t $out/share/doc AUTHORS BUGS ChangeLog README USAGE
47   '';
49   meta = with lib; {
50     description = "A graphical frontend for CUPS";
51     homepage = "https://gtklp.sirtobi.com";
52     license = licenses.gpl2Only;
53     maintainers = with maintainers; [ caadar ];
54     platforms = platforms.unix;
55   };