Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, gtk2, pkg-config, libintl }:
2
3stdenv.mkDerivation rec {
4 pname = "gtkperf";
5 version = "0.40.0";
6 src = fetchurl {
7 url = "mirror://sourceforge/${pname}/${pname}_${lib.versions.majorMinor version}.tar.gz";
8 sha256 = "0yxj3ap3yfi76vqg6xjvgc16nfi9arm9kp87s35ywf10fd73814p";
9 };
10
11 hardeningDisable = [ "format" ];
12
13 nativeBuildInputs = [ pkg-config ];
14 buildInputs = [ gtk2 libintl ];
15
16 # https://openbenchmarking.org/innhold/7e9780c11550d09aa67bdba71248facbe2d781db
17 patches = [ ./bench.patch ];
18
19 meta = with lib; {
20 description = "Application designed to test GTK performance";
21 homepage = "https://gtkperf.sourceforge.net/";
22 license = with licenses; [ gpl2 ];
23 maintainers = with maintainers; [ dtzWill ];
24 };
25}