Skip to content

Commit

Permalink
Add the manpages to the Nix package
Browse files Browse the repository at this point in the history
  • Loading branch information
giodamelio committed Aug 8, 2023
1 parent b8e0be2 commit a2c7899
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,22 @@
cargoLock.lockFile = ./Cargo.lock;
src = pkgs.lib.cleanSource ./.;

# Install the manpage
postBuild = ''
export manfilepath=$(find target/ -type f -wholename "*out/little_boxes.1" | head -n 1)
mv $manfilepath .
'';
postInstall = ''
mkdir -p $out/share/man/man1
cp little_boxes.1 $out/share/man/man1/
'';

meta = with pkgs.lib; {
description = manifest.description;
homepage = manifest.homepage;
license = licenses.mit;
maintainers = [maintainers.giodamelio];
manpages = ["man/man1/little_boxes.1"];
};
};

Expand Down

0 comments on commit a2c7899

Please sign in to comment.