about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/X11/wmctrl/default.nix
blob: 0a01a3dad5a4c371c4ae82690b804418712caa80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib, stdenv
, fetchurl
, libX11
, glib
, pkg-config
, libXmu
}:

stdenv.mkDerivation rec {

  pname = "wmctrl";
  version = "1.07";

  src = fetchurl {
    # NOTE: 2019-04-11: There is also a semi-official mirror: http://tripie.sweb.cz/utils/wmctrl/
    url = "https://sites.google.com/site/tstyblo/wmctrl/${pname}-${version}.tar.gz";
    sha256 = "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ libX11 libXmu glib ];

  patches = [ ./64-bit-data.patch ];

  meta = {
    homepage = "https://sites.google.com/site/tstyblo/wmctrl";
    description = "CLI tool to interact with EWMH/NetWM compatible X Window Managers";
    license = lib.licenses.gpl2;
    platforms = with lib.platforms; all;
    maintainers = [ lib.maintainers.Anton-Latukha ];
  };

}