nixpkgs/pkgs/desktops/gnome-3/extensions/no-title-bar/default.nix
2018-11-30 21:35:24 +01:00

35 lines
920 B
Nix

{ stdenv, fetchFromGitHub, substituteAll, glib, gettext, xorg }:
stdenv.mkDerivation rec {
name = "gnome-shell-extension-no-title-bar-${version}";
version = "9";
src = fetchFromGitHub {
owner = "franglais125";
repo = "no-title-bar";
rev = "v${version}";
sha256 = "02zm61fg40r005fn2rvgrbsz2hbcsmp2hkhyilqbmpilw35y0nbq";
};
nativeBuildInputs = [
glib gettext
];
patches = [
(substituteAll {
src = ./fix-paths.patch;
xprop = "${xorg.xprop}/bin/xprop";
xwininfo = "${xorg.xwininfo}/bin/xwininfo";
})
];
makeFlags = [ "INSTALLBASE=$(out)/share/gnome-shell/extensions" ];
meta = with stdenv.lib; {
description = "Integrates maximized windows with the top panel";
homepage = https://github.com/franglais125/no-title-bar;
license = licenses.gpl2;
maintainers = with maintainers; [ jonafato svsdep ];
platforms = platforms.linux;
};
}