river: split man output

This commit is contained in:
Anderson Torres 2023-07-15 02:24:36 -03:00
parent c4867cc794
commit 299723c875

View File

@ -15,6 +15,7 @@
, wlroots_0_16
, xwayland
, zigHook
, withManpages ? true
, xwaylandSupport ? true
}:
@ -22,6 +23,8 @@ stdenv.mkDerivation (finalAttrs: {
pname = "river";
version = "0.2.4";
outputs = [ "out" ] ++ lib.optionals withManpages [ "man" ];
src = fetchFromGitHub {
owner = "riverwm";
repo = "river";
@ -32,11 +35,11 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
pkg-config
scdoc
wayland
xwayland
zigHook
];
]
++ lib.optional withManpages scdoc;
buildInputs = [
libGL
@ -51,10 +54,8 @@ stdenv.mkDerivation (finalAttrs: {
dontConfigure = true;
zigBuildFlags = [
"-Dman-pages"
]
++ lib.optional xwaylandSupport "-Dxwayland";
zigBuildFlags = lib.optional withManpages "-Dman-pages"
++ lib.optional xwaylandSupport "-Dxwayland";
postInstall = ''
install contrib/river.desktop -Dt $out/share/wayland-sessions