3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/xfce/panel-plugins/xfce4-namebar-plugin.nix

39 lines
1.2 KiB
Nix
Raw Normal View History

2020-12-30 19:49:28 +00:00
{ stdenv, pkgconfig, fetchFromGitHub, python3, vala_0_46
, gtk3, libwnck3, libxfce4util, xfce4-panel, wafHook, xfce }:
2017-06-05 02:47:08 +01:00
stdenv.mkDerivation rec {
pname = "xfce4-namebar-plugin";
version = "1.0.0";
2017-06-05 02:47:08 +01:00
src = fetchFromGitHub {
owner = "HugLifeTiZ";
repo = pname;
rev = "v${version}";
sha256 = "0l70f6mzkscsj4wr43wp5c0l2qnf85vj24cv02bjrh3bzz6wkak8";
2017-06-05 02:47:08 +01:00
};
2020-12-30 19:49:28 +00:00
nativeBuildInputs = [ pkgconfig vala_0_46 wafHook python3 ];
buildInputs = [ gtk3 libwnck3 libxfce4util xfce4-panel ];
2017-06-05 02:47:08 +01:00
postPatch = ''
for f in src/preferences.vala src/namebar.vala; do
substituteInPlace $f --replace 'var dirs = Environment.get_system_data_dirs()' "string[] dirs = { \"$out/share\" }"
done
2017-06-05 02:47:08 +01:00
'';
passthru.updateScript = xfce.updateScript {
inherit pname version;
attrPath = "xfce.${pname}";
versionLister = xfce.gitLister src.meta.homepage;
rev-prefix = "v";
};
2017-06-05 02:47:08 +01:00
meta = with stdenv.lib; {
homepage = "https://github.com/HugLifeTiZ/xfce4-namebar-plugin";
description = "Plugin which integrates titlebar and window controls into the xfce4-panel";
2017-06-05 02:47:08 +01:00
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ maintainers.volth ];
};
}