From 4c0a4740a76ce61b419d51336073764284118aaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 9 Apr 2022 16:23:35 +0200 Subject: WIP --- pkgs/openrc/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pkgs/openrc/default.nix') 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/" + ''; } -- cgit v1.2.3