tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
xfce4_namebar_plugin: init at 0.3.1
Volth
8 years ago
9edfc2b0
a0598f9b
+36
2 changed files
expand all
collapse all
unified
split
pkgs
desktops
xfce
default.nix
panel-plugins
xfce4-namebar-plugin.nix
+1
pkgs/desktops/xfce/default.nix
···
89
89
xfce4_fsguard_plugin = callPackage ./panel-plugins/xfce4-fsguard-plugin.nix { };
90
90
xfce4_genmon_plugin = callPackage ./panel-plugins/xfce4-genmon-plugin.nix { };
91
91
xfce4-hardware-monitor-plugin = callPackage ./panel-plugins/xfce4-hardware-monitor-plugin.nix { };
92
92
+
xfce4_namebar_plugin = callPackage ./panel-plugins/xfce4-namebar-plugin.nix { };
92
93
xfce4_netload_plugin = callPackage ./panel-plugins/xfce4-netload-plugin.nix { };
93
94
xfce4_notes_plugin = callPackage ./panel-plugins/xfce4-notes-plugin.nix { };
94
95
xfce4_mailwatch_plugin = callPackage ./panel-plugins/xfce4-mailwatch-plugin.nix { };
+35
pkgs/desktops/xfce/panel-plugins/xfce4-namebar-plugin.nix
···
1
1
+
{ stdenv, pkgconfig, fetchFromGitHub, python2, vala, gtk2, libwnck, libxfce4util, xfce4panel }:
2
2
+
3
3
+
stdenv.mkDerivation rec {
4
4
+
ver = "0.3.1";
5
5
+
rev = "07a23b3";
6
6
+
name = "xfce4-namebar-plugin-${ver}";
7
7
+
8
8
+
src = fetchFromGitHub {
9
9
+
owner = "TiZ-EX1";
10
10
+
repo = "xfce4-namebar-plugin";
11
11
+
rev = rev;
12
12
+
sha256 = "1sl4qmjywfvv53ch7hyfysjfd91zl38y7gdw2y3k69vkzd3h18ad";
13
13
+
};
14
14
+
15
15
+
buildInputs = [ pkgconfig python2 vala gtk2 libwnck libxfce4util xfce4panel ];
16
16
+
17
17
+
postPatch = ''
18
18
+
substituteInPlace src/preferences.vala --replace 'Environment.get_system_data_dirs()' "{ \"$out/share\" }"
19
19
+
substituteInPlace src/namebar.vala --replace 'Environment.get_system_data_dirs()' "{ \"$out/share\" }"
20
20
+
'';
21
21
+
22
22
+
configurePhase = "python waf configure --prefix=$out";
23
23
+
24
24
+
buildPhase = "python waf build";
25
25
+
26
26
+
installPhase = "python waf install";
27
27
+
28
28
+
meta = with stdenv.lib; {
29
29
+
homepage = https://github.com/TiZ-EX1/xfce4-namebar-plugin;
30
30
+
description = "A plugins which integrates titlebar and window controls into the xfce4-panel";
31
31
+
license = licenses.mit;
32
32
+
platforms = platforms.linux;
33
33
+
maintainers = [ maintainers.volth ];
34
34
+
};
35
35
+
}