about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJade Lovelace <software@lfcode.ca>2023-02-26 21:25:28 -0800
committerJade Lovelace <software@lfcode.ca>2023-07-30 14:27:23 -0700
commit614b63922b6fd8bcc28760fa52c495f55fa35800 (patch)
tree8701e4dd791b2f40b9eb3db7d3fa995858bae875
parent48f8e39bfbd077447f17a90213e6becce1af2d45 (diff)
ubootTools: add man pages
As far as I can tell, there are no makefile targets to install these, or
anything like that, so we have to do it by hand.

This adds man pages for dumpimage, kwboot, mkeficapsule, and mkimage.
There are no man pages in other sections than 1.
-rw-r--r--pkgs/misc/uboot/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/misc/uboot/default.nix b/pkgs/misc/uboot/default.nix
index 517f9e784a616..81b37d7632c19 100644
--- a/pkgs/misc/uboot/default.nix
+++ b/pkgs/misc/uboot/default.nix
@@ -8,6 +8,7 @@
 , fetchurl
 , flex
 , gnutls
+, installShellFiles
 , libuuid
 , meson-tools
 , ncurses
@@ -66,6 +67,7 @@ let
       bison
       dtc
       flex
+      installShellFiles
       openssl
       (buildPackages.python3.withPackages (p: [
         p.libfdt
@@ -136,6 +138,12 @@ in {
     dontStrip = false;
     extraMeta.platforms = lib.platforms.linux;
     extraMakeFlags = [ "HOST_TOOLS_ALL=y" "CROSS_BUILD_TOOLS=1" "NO_SDL=1" "tools" ];
+
+    outputs = [ "out" "man" ];
+
+    postInstall = ''
+      installManPage doc/*.1
+    '';
     filesToInstall = [
       "tools/dumpimage"
       "tools/fdtgrep"