lol
1{ stdenv, pkgconfig, fetchFromGitHub, python2, vala, gtk2, libwnck, libxfce4util, xfce4panel }:
2
3stdenv.mkDerivation rec {
4 ver = "0.3.1";
5 rev = "07a23b3";
6 name = "xfce4-namebar-plugin-${ver}";
7
8 src = fetchFromGitHub {
9 owner = "TiZ-EX1";
10 repo = "xfce4-namebar-plugin";
11 rev = rev;
12 sha256 = "1sl4qmjywfvv53ch7hyfysjfd91zl38y7gdw2y3k69vkzd3h18ad";
13 };
14
15 buildInputs = [ pkgconfig python2 vala gtk2 libwnck libxfce4util xfce4panel ];
16
17 postPatch = ''
18 substituteInPlace src/preferences.vala --replace 'Environment.get_system_data_dirs()' "{ \"$out/share\" }"
19 substituteInPlace src/namebar.vala --replace 'Environment.get_system_data_dirs()' "{ \"$out/share\" }"
20 '';
21
22 configurePhase = "python waf configure --prefix=$out";
23
24 buildPhase = "python waf build";
25
26 installPhase = "python waf install";
27
28 meta = with stdenv.lib; {
29 homepage = https://github.com/TiZ-EX1/xfce4-namebar-plugin;
30 description = "A plugins which integrates titlebar and window controls into the xfce4-panel";
31 license = licenses.mit;
32 platforms = platforms.linux;
33 maintainers = [ maintainers.volth ];
34 };
35}