2021-10-19 20:46:34 +01:00
|
|
|
{ lib, stdenv, fetchbzr, cmake, pkg-config, gettext, libXpm, libGL, fltk, hicolor-icon-theme, glib, gnome2, which }:
|
2018-10-23 13:03:13 +01:00
|
|
|
|
2021-10-19 20:46:34 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "jwm-settings-manager";
|
2021-10-19 20:46:34 +01:00
|
|
|
version = "2019-01-27";
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2021-10-19 20:46:34 +01:00
|
|
|
src = fetchbzr {
|
|
|
|
url = "lp:${pname}";
|
|
|
|
rev = "292";
|
|
|
|
sha256 = "1yqc1ac2pbkc88z7p1qags1jygdlr5y1rhc5mx6gapcf54bk0lmi";
|
2018-10-23 13:03:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2018-10-23 13:03:13 +01:00
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
2021-10-19 20:46:34 +01:00
|
|
|
postConfigure = ''
|
|
|
|
substituteInPlace cmake_install.cmake \
|
|
|
|
--replace "/var/empty" "/usr"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-23 13:03:13 +01:00
|
|
|
description = "A full configuration manager for JWM";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://joewing.net/projects/jwm";
|
2018-10-23 13:03:13 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|