nixpkgs/pkgs/applications/misc/devilspie2/default.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

2015-09-09 23:11:56 +02:00
{ stdenv, fetchurl, intltool, pkgconfig, glib, gtk, lua, libwnck3 }:
stdenv.mkDerivation rec {
name = "devilspie2-${version}";
2017-03-20 02:02:30 +01:00
version = "0.42";
2015-09-09 23:11:56 +02:00
src = fetchurl {
2017-03-20 02:02:30 +01:00
url = "http://download.savannah.gnu.org/releases/devilspie2/devilspie2_${version}-src.tar.gz";
sha256 = "119zb9x5i3y4cp30h4113psqxb5d7zxiyijpq02g8kds1wqvrx8i";
2015-09-09 23:11:56 +02:00
};
2017-03-20 02:02:30 +01:00
nativeBuildInputs = [ intltool pkgconfig ];
buildInputs = [ glib gtk lua libwnck3 ];
2015-09-09 23:11:56 +02:00
installPhase = ''
mkdir -p $out/bin $out/share/man/man1
cp bin/devilspie2 $out/bin
cp devilspie2.1 $out/share/man/man1
'';
meta = with stdenv.lib; {
2017-03-20 02:02:30 +01:00
description = "A window matching utility";
2015-09-09 23:11:56 +02:00
longDescription = ''
Devilspie2 is a window matching utility, allowing the user to
perform scripted actions on windows as they are created. For
example you can script a terminal program to always be
positioned at a specific screen position, or position a window
on a specific workspace.
'';
homepage = http://www.gusnan.se/devilspie2/;
license = licenses.gpl3;
maintainers = [ maintainers.ebzzry ];
platforms = platforms.linux;
};
}