1 { stdenv, lib, fetchurl
2 , autoreconfHook, libtool, pkg-config
3 , gtk2, glib, cups, gettext, openssl
6 stdenv.mkDerivation rec {
11 url = "mirror://sourceforge/${pname}/${pname}-${version}.src.tar.gz";
12 sha256 = "1arvnnvar22ipgnzqqq8xh0kkwyf71q2sfsf0crajpsr8a8601xy";
30 ./patches/mdv-fix-str-fmt.patch
31 ./patches/autoconf.patch
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";
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/"
46 install -D -m0644 -t $out/share/doc AUTHORS BUGS ChangeLog README USAGE
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;