diff options
author | Niklas Hambüchen <mail@nh2.me> | 2019-10-27 01:27:41 +0200 |
---|---|---|
committer | Niklas Hambüchen <mail@nh2.me> | 2019-10-27 02:18:52 +0200 |
commit | 3f4bd0e04b31c64b789e7d5b6bdb7f113d3c4641 (patch) | |
tree | 8d4ae6e0b3c08dba2156d49ecebe8e5bf7df8593 /pkgs/applications | |
parent | 03470789498a3a6b5ea4e525d06191815a0978f7 (diff) | |
download | nixlib-3f4bd0e04b31c64b789e7d5b6bdb7f113d3c4641.tar nixlib-3f4bd0e04b31c64b789e7d5b6bdb7f113d3c4641.tar.gz nixlib-3f4bd0e04b31c64b789e7d5b6bdb7f113d3c4641.tar.bz2 nixlib-3f4bd0e04b31c64b789e7d5b6bdb7f113d3c4641.tar.lz nixlib-3f4bd0e04b31c64b789e7d5b6bdb7f113d3c4641.tar.xz nixlib-3f4bd0e04b31c64b789e7d5b6bdb7f113d3c4641.tar.zst nixlib-3f4bd0e04b31c64b789e7d5b6bdb7f113d3c4641.zip |
elogind: init at 239.5
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/misc/elogind/default.nix | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/pkgs/applications/misc/elogind/default.nix b/pkgs/applications/misc/elogind/default.nix new file mode 100644 index 000000000000..a213a92dca7b --- /dev/null +++ b/pkgs/applications/misc/elogind/default.nix @@ -0,0 +1,74 @@ +{ stdenv +, lib +, fetchFromGitHub +, meson +, ninja +, m4 +, gperf +, getent +, libcap +, gettext +, pkgconfig +, udev +, eudev +, libxslt +, python3Packages +, docbook5 +, docbook_xsl +, docbook_xsl_ns +, docbook_xml_dtd_42 +, docbook_xml_dtd_45 + +# Defaulting to false because usually the rationale for using elogind is to +# use it in situation where a systemd dependency does not work (especially +# when building with musl, which elogind explicitly supports). +, enableSystemd ? false +}: + +with stdenv.lib; + +stdenv.mkDerivation rec { + pname = "elogind"; + version = "239.5"; + + src = fetchFromGitHub { + owner = "elogind"; + repo = pname; + rev = "v${version}"; + sha256 = "1gdiy4vbx4gs2hnb79x14zi530mlq26glxpzp3c95w8l058wj4ba"; + }; + + nativeBuildInputs = [ + meson + ninja + m4 + pkgconfig + gperf + getent + libcap + gettext + libxslt.bin # xsltproc + docbook5 docbook_xsl docbook_xsl_ns docbook_xml_dtd_42 docbook_xml_dtd_45 # needed for docbook without Internet + python3Packages.lxml # fixes: man/meson.build:111:0: ERROR: Could not execute command "/build/source/tools/xml_helper.py". + ]; + + buildInputs = + if enableSystemd then [udev] else [eudev]; + + preConfigure = '' + patchShebangs . + ''; + + mesonFlags = [ + "-Drootprefix=${placeholder "out"}" + "-Dsysconfdir=${placeholder "out"}/etc" + ]; + + meta = { + homepage = https://github.com/elogind/elogind/releases; + description = ''The systemd project's "logind", extracted to a standalone package''; + platforms = platforms.linux; # probably more + license = licenses.gpl2; + maintainers = with maintainers; [ nh2 ]; + }; +} |