uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
57
pkgs/tools/misc/gtklp/default.nix
Normal file
57
pkgs/tools/misc/gtklp/default.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ stdenv, lib, fetchurl
|
||||
, autoreconfHook, libtool, pkg-config
|
||||
, gtk2, glib, cups, gettext, openssl
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gtklp";
|
||||
version = "1.3.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/${pname}/${pname}-${version}.src.tar.gz";
|
||||
sha256 = "1arvnnvar22ipgnzqqq8xh0kkwyf71q2sfsf0crajpsr8a8601xy";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
autoreconfHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
cups
|
||||
gettext
|
||||
glib
|
||||
gtk2
|
||||
libtool
|
||||
openssl
|
||||
];
|
||||
|
||||
patches = [
|
||||
./patches/mdv-fix-str-fmt.patch
|
||||
./patches/autoconf.patch
|
||||
];
|
||||
|
||||
# Workaround build failure on -fno-common toolchains:
|
||||
# ld: libgtklp.a(libgtklp.o):libgtklp/libgtklp.h:83: multiple definition of `progressBar';
|
||||
# file.o:libgtklp/libgtklp.h:83: first defined here
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace include/defaults.h --replace "netscape" "firefox"
|
||||
substituteInPlace include/defaults.h --replace "http://localhost:631/sum.html#STANDARD_OPTIONS" \
|
||||
"http://localhost:631/help/"
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
install -D -m0644 -t $out/share/doc AUTHORS BUGS ChangeLog README USAGE
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A graphical frontend for CUPS";
|
||||
homepage = "https://gtklp.sirtobi.com";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ caadar ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue