nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 pkg-config,
6 libX11,
7 libXmu,
8 libXpm,
9 gtk2,
10 libpng,
11 libjpeg,
12 libtiff,
13 librsvg,
14 gdk-pixbuf,
15 gdk-pixbuf-xlib,
16 pypy2,
17}:
18
19stdenv.mkDerivation {
20 pname = "fbpanel";
21 version = "7.0";
22 src = fetchFromGitHub {
23 owner = "aanatoly";
24 repo = "fbpanel";
25 rev = "478754b687e2b48b111507ea22e8e2a001be5199";
26 hash = "sha256-+KcVcrh1aV6kjLGyiDnRHXSzJfelXWrhJS0DitG4yPA=";
27 };
28 nativeBuildInputs = [
29 pkg-config
30 pypy2
31 ];
32 buildInputs = [
33 libX11
34 libXmu
35 libXpm
36 gtk2
37 libpng
38 libjpeg
39 libtiff
40 librsvg
41 gdk-pixbuf
42 gdk-pixbuf-xlib.dev
43 ];
44
45 preConfigure = ''
46 sed -re '1i#!${pypy2}/bin/pypy' -i configure .config/*.py
47 sed -re 's/\<out\>/outputredirect/g' -i .config/rules.mk
48 sed -i 's/struct\ \_plugin_instance \*stam\;//' panel/plugin.h
49 '';
50
51 makeFlags = [ "V=1" ];
52
53 env.NIX_CFLAGS_COMPILE = toString [
54 "-Wno-error"
55 "-Wno-error=incompatible-pointer-types" # not implied by -Wno-error
56 "-I${gdk-pixbuf-xlib.dev}/include/gdk-pixbuf-2.0"
57 ];
58
59 meta = {
60 description = "Stand-alone panel";
61 maintainers = with lib.maintainers; [ raskin ];
62 platforms = lib.platforms.linux;
63 license = lib.licenses.mit;
64 mainProgram = "fbpanel";
65 };
66
67}