about summary refs log tree commit diff
path: root/pkgs/tools/X11/obconf/default.nix
blob: 02fe2663b0029eb868f31b8131830d311d23b0c1 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ lib
, stdenv
, fetchgit
, autoreconfHook
, pkg-config
, wrapGAppsHook3
, gtk3
, imlib2
, libSM
, libstartup_notification
, libxml2
, openbox
}:

stdenv.mkDerivation rec {
  pname = "obconf";
  version = "unstable-2015-02-13";

  src = fetchgit {
    url = "git://git.openbox.org/dana/obconf";
    rev = "63ec47c5e295ad4f09d1df6d92afb7e10c3fec39";
    sha256 = "sha256-qwm66VA/ueRMFtSUcrmuObNkz+KYgWRnmR7TnQwpxiE=";
  };

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
    wrapGAppsHook3
  ];

  buildInputs = [
    gtk3
    imlib2
    libSM
    libstartup_notification
    libxml2
    openbox
  ];

  postPatch = ''
    substituteInPlace configure.ac --replace 2.0.4 ${version}
  '';

  meta = {
    description = "GUI configuration tool for openbox";
    homepage = "http://openbox.org/wiki/ObConf";
    changelog = "http://openbox.org/wiki/ObConf:Changelog";
    license = lib.licenses.gpl2Plus;
    maintainers = [ lib.maintainers.sfrijters ];
    platforms = lib.platforms.linux;
    mainProgram = "obconf";
  };
}