summary refs log tree commit diff
path: root/pkgs/applications/window-managers/jwm/jwm-settings-manager.nix
blob: 3b764e7095be9b8501a59cb9a25dc953fce14fb3 (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
{ stdenv, fetchFromGitHub, cmake, pkgconfig, gettext, libXpm, libGL, fltk, hicolor-icon-theme, glib, gnome2, which }:

stdenv.mkDerivation rec {
  name = "jwm-settings-manager-${version}";
  version = "2018-10-19";
  
  src = fetchFromGitHub {
    owner = "Israel-D";
    repo = "jwm-settings-manager";
    rev = "cb32a70563cf1f3927339093481542b85ec3c8c8";
    sha256 = "0d5bqf74p8zg8azns44g46q973blhmp715k8kcd73x88g7sfir8s";
  };

  nativeBuildInputs = [
    cmake
    pkgconfig
    gettext
  ];

  buildInputs = [
    libXpm
    libGL
    fltk
    hicolor-icon-theme
    which # needed at runtime to locate optional programs
    glib.bin # provides gsettings
    gnome2.GConf # provides gconftool-2
  ];

  postPatch = ''
    substituteInPlace CMakeLists.txt \
      --replace 'CMAKE_INSTALL_PREFIX "/usr"' "CMAKE_INSTALL_PREFIX $out"
    substituteInPlace data/CMakeLists.txt \
      --replace 'DESTINATION usr/share' "DESTINATION share"
  '';

  meta = with stdenv.lib; {
    description = "A full configuration manager for JWM";
    homepage = https://joewing.net/projects/jwm;
    license = licenses.gpl3;
    platforms = platforms.linux;
    maintainers = [ maintainers.romildo ];
  };
}