Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{lib, stdenv, fetchurl, fetchpatch, gtk2, pkg-config }:
2
3stdenv.mkDerivation rec {
4 pname = "gtkdialog";
5 version = "0.8.3";
6
7 src = fetchurl {
8 url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${pname}/${pname}-${version}.tar.gz";
9 sha256 = "ff89d2d7f1e6488e5df5f895716ac1d4198c2467a2a5dc1f51ab408a2faec38e";
10 };
11 patches = [
12 # Pull Gentoo patch for -fno-common toolchain fix.
13 (fetchpatch {
14 name = "fno-common.patch";
15 url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/x11-misc/gtkdialog/files/gtkdialog-0.8.3-fno-common.patch?id=98692e4c4ad494b88c4902ca1ab3e6541190bbe8";
16 sha256 = "1mh01krzpfy7lbbqx3xm71xsiqqgg67w4snv794wspfqkk2hicvz";
17 })
18 ];
19
20 nativeBuildInputs = [ pkg-config ];
21 buildInputs = [ gtk2 ];
22
23 meta = {
24 homepage = "https://code.google.com/archive/p/gtkdialog/";
25 # community links: http://murga-linux.com/puppy/viewtopic.php?t=111923 -> https://github.com/01micko/gtkdialog
26 description = "Small utility for fast and easy GUI building from many scripted and compiled languages";
27 license = lib.licenses.gpl2Plus;
28 platforms = lib.platforms.linux;
29 };
30}