2021-06-28 23:13:55 +00:00
|
|
|
{ lib, stdenv, fetchurl, intltool, pkg-config, glib, gtk, lua, libwnck }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "devilspie2";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "0.44";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-10-21 18:38:19 +00:00
|
|
|
url = "https://download.savannah.gnu.org/releases/devilspie2/devilspie2-${version}.tar.xz";
|
|
|
|
sha256 = "Cp8erdKyKjGBY+QYAGXUlSIboaQ60gIepoZs0RgEJkA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ intltool pkg-config ];
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ glib gtk lua libwnck ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/man/man1
|
|
|
|
cp bin/devilspie2 $out/bin
|
|
|
|
cp devilspie2.1 $out/share/man/man1
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A window matching utility";
|
|
|
|
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.
|
|
|
|
'';
|
2022-10-21 18:38:19 +00:00
|
|
|
homepage = "https://www.nongnu.org/devilspie2/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.ebzzry ];
|
|
|
|
platforms = platforms.linux;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "devilspie2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|