From b348f8568fd3e503919021045522995885bddb1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= Date: Tue, 23 Oct 2018 09:03:13 -0300 Subject: [PATCH] jwm-settings-manager: init at 2018-10-19 --- .../jwm/jwm-settings-manager.nix | 44 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/applications/window-managers/jwm/jwm-settings-manager.nix diff --git a/pkgs/applications/window-managers/jwm/jwm-settings-manager.nix b/pkgs/applications/window-managers/jwm/jwm-settings-manager.nix new file mode 100644 index 000000000000..3b764e7095be --- /dev/null +++ b/pkgs/applications/window-managers/jwm/jwm-settings-manager.nix @@ -0,0 +1,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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 07068cc29173..3e99997915d5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17403,6 +17403,8 @@ with pkgs; jwm = callPackage ../applications/window-managers/jwm { }; + jwm-settings-manager = callPackage ../applications/window-managers/jwm/jwm-settings-manager.nix { }; + k3d = callPackage ../applications/graphics/k3d { inherit (pkgs.gnome2) gtkglext; stdenv = overrideCC stdenv gcc6;