From 7cd7c724f91b9e924b138bcaf040c57cc2cf57d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Niemier?= <~@hauleth.dev> Date: Wed, 17 Jan 2024 16:44:13 +0100 Subject: [PATCH] chore: install manpages when building via Nix --- nix/ptsd.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nix/ptsd.nix b/nix/ptsd.nix index d425a6f..620a042 100644 --- a/nix/ptsd.nix +++ b/nix/ptsd.nix @@ -18,6 +18,11 @@ rustPlatform.buildRustPackage { scdoc ]; + postInstall = '' + mkdir -p $out/share/man/man5 + scdoc < docs/ptsd.json.5.scd > $out/share/man/man5/ptsd.json.5 + ''; + buildInputs = [] ++ lib.lists.optionals stdenv.isDarwin (with darwin.apple_sdk; [ -- 2.51.2