summaryrefslogtreecommitdiff
path: root/pkgs/openrc
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-02-21 21:54:09 +0100
committerKarel Kočí <cynerd@email.cz>2022-02-21 22:07:43 +0100
commit6a039e268369f7e9055e19d733849da26ab0208b (patch)
treebdda334bf9ccddf145985a4cbe45cc562c98e7c1 /pkgs/openrc
downloadnix-openrc-6a039e268369f7e9055e19d733849da26ab0208b.tar.gz
nix-openrc-6a039e268369f7e9055e19d733849da26ab0208b.tar.bz2
nix-openrc-6a039e268369f7e9055e19d733849da26ab0208b.zip
Add OpenRC
Diffstat (limited to 'pkgs/openrc')
-rw-r--r--pkgs/openrc/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/openrc/default.nix b/pkgs/openrc/default.nix
new file mode 100644
index 0000000..8c235e0
--- /dev/null
+++ b/pkgs/openrc/default.nix
@@ -0,0 +1,37 @@
+{ stdenv, lib, fetchgit
+, meson, ninja, pkg-config
+, pam, ncurses
+}:
+
+stdenv.mkDerivation rec {
+ pname = "openrc";
+ version = "0.44.10";
+ meta = with lib; {
+ homepage = "https://github.com/OpenRC/openrc";
+ description = "OpenRC manages the services, startup and shutdown of a host";
+ platforms = with platforms; linux;
+ license = licenses.bsd2;
+ };
+
+ src = fetchgit {
+ url = "https://github.com/OpenRC/openrc.git";
+ rev = version;
+ sha256 = "0azb3ywclzx6cz9bmfpc4aqysz1pq4akr882bvnqh2x78xixcydv";
+ };
+
+ nativeBuildInputs = [ meson ninja pkg-config ];
+ buildInputs = [ pam ncurses ];
+
+ preConfigure = "export DESTDIR=/";
+ mesonFlags = [
+ "-Dbranding=\"NIXOS\""
+ "-Dos=Linux"
+ "-Dselinux=disabled"
+ "-Daudit=disabled"
+ "-Dsysvinit=false"
+ "-Dtermcap=ncurses"
+ "-Dnewnet=true"
+ "-Drootprefix=${placeholder "out"}"
+ "--sysconfdir=${placeholder "out"}/etc"
+ ];
+}