summaryrefslogtreecommitdiff
path: root/pkgs/openrc/default.nix
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-04-09 16:23:35 +0200
committerKarel Kočí <cynerd@email.cz>2022-04-09 16:23:35 +0200
commit4c0a4740a76ce61b419d51336073764284118aaf (patch)
tree24f3f50a36cc66f37e849f47bdab3f0ab1852c97 /pkgs/openrc/default.nix
parent6a039e268369f7e9055e19d733849da26ab0208b (diff)
downloadnix-openrc-master.tar.gz
nix-openrc-master.tar.bz2
nix-openrc-master.zip
Diffstat (limited to 'pkgs/openrc/default.nix')
-rw-r--r--pkgs/openrc/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/openrc/default.nix b/pkgs/openrc/default.nix
index 8c235e0..3cb6d8e 100644
--- a/pkgs/openrc/default.nix
+++ b/pkgs/openrc/default.nix
@@ -22,6 +22,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ meson ninja pkg-config ];
buildInputs = [ pam ncurses ];
+ outputs = [ "out" "dev" "man" "support" ];
+
preConfigure = "export DESTDIR=/";
mesonFlags = [
"-Dbranding=\"NIXOS\""
@@ -34,4 +36,11 @@ stdenv.mkDerivation rec {
"-Drootprefix=${placeholder "out"}"
"--sysconfdir=${placeholder "out"}/etc"
];
+ postInstall = ''
+ mkdir -p "$support/share/openrc/"
+ mv "$out/share/openrc/support" "$support/share/openrc/"
+
+ #mkdir -p "$etc"
+ #mv "$out/etc" "$etc/"
+ '';
}