2024-02-02 11:17:33 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, libX11
|
|
|
|
, libXmu
|
|
|
|
, libXpm
|
|
|
|
, gtk2
|
|
|
|
, libpng
|
|
|
|
, libjpeg
|
|
|
|
, libtiff
|
|
|
|
, librsvg
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gdk-pixbuf-xlib
|
|
|
|
, pypy2
|
2015-04-02 12:59:34 +00:00
|
|
|
}:
|
2010-07-29 18:55:16 +00:00
|
|
|
|
2015-04-02 12:59:34 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "fbpanel";
|
2024-02-02 11:17:33 +00:00
|
|
|
version = "7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aanatoly";
|
|
|
|
repo = "fbpanel";
|
|
|
|
rev = "478754b687e2b48b111507ea22e8e2a001be5199";
|
|
|
|
hash = "sha256-+KcVcrh1aV6kjLGyiDnRHXSzJfelXWrhJS0DitG4yPA=";
|
2010-11-03 21:57:42 +00:00
|
|
|
};
|
2024-02-02 11:17:33 +00:00
|
|
|
nativeBuildInputs = [ pkg-config pypy2 ];
|
|
|
|
buildInputs = [
|
|
|
|
libX11
|
|
|
|
libXmu
|
|
|
|
libXpm
|
|
|
|
gtk2
|
|
|
|
libpng
|
|
|
|
libjpeg
|
|
|
|
libtiff
|
|
|
|
librsvg
|
|
|
|
gdk-pixbuf
|
|
|
|
gdk-pixbuf-xlib.dev
|
|
|
|
];
|
2010-11-03 21:57:42 +00:00
|
|
|
|
2024-02-02 11:17:33 +00:00
|
|
|
preConfigure = ''
|
|
|
|
sed -re '1i#!${pypy2}/bin/pypy' -i configure .config/*.py
|
|
|
|
sed -re 's/\<out\>/outputredirect/g' -i .config/rules.mk
|
|
|
|
sed -i 's/struct\ \_plugin_instance \*stam\;//' panel/plugin.h
|
2020-10-04 20:50:59 +00:00
|
|
|
'';
|
|
|
|
|
2024-02-02 11:17:33 +00:00
|
|
|
makeFlags = ["V=1"];
|
|
|
|
NIX_CFLAGS_COMPILE = ["-Wno-error" "-I${gdk-pixbuf-xlib.dev}/include/gdk-pixbuf-2.0"];
|
2010-11-03 21:57:42 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2010-11-04 10:47:24 +00:00
|
|
|
description = "Stand-alone panel";
|
2015-04-02 12:59:34 +00:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2015-11-25 22:04:57 +00:00
|
|
|
platforms = platforms.linux;
|
2018-09-08 13:28:25 +00:00
|
|
|
license = licenses.mit;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "fbpanel";
|
2010-11-03 21:57:42 +00:00
|
|
|
};
|
2015-04-02 12:59:34 +00:00
|
|
|
|
|
|
|
}
|