aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Rutger Broekhoff2024-04-29 18:00:34 +0200
committerLibravatar Rutger Broekhoff2024-04-29 18:00:34 +0200
commit6b676295f5f71e255dd585327d95eb1dbd732d4c (patch)
tree646307db274c85097f4b682c58be70bfe8db8b27
parent1b50e6b0af2dc7f9d785e886a79784e3c6accc8b (diff)
downloadgitolfs3-6b676295f5f71e255dd585327d95eb1dbd732d4c.tar.gz
gitolfs3-6b676295f5f71e255dd585327d95eb1dbd732d4c.zip
Install man pages in Nix derivation
-rw-r--r--flake.nix22
1 files changed, 21 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index e484e36..b1a452d 100644
--- a/flake.nix
+++ b/flake.nix
@@ -46,10 +46,30 @@
46 46
47 cargoArtifacts = craneLib.buildDepsOnly commonArgs; 47 cargoArtifacts = craneLib.buildDepsOnly commonArgs;
48 48
49 gitolfs3 = craneLib.buildPackage (commonArgs // { 49 gitolfs3-bare = craneLib.buildPackage (commonArgs // {
50 # We already have the gitolfs3-nextest check 50 # We already have the gitolfs3-nextest check
51 doCheck = false; 51 doCheck = false;
52 }); 52 });
53
54 gitolfs3-man = pkgs.stdenv.mkDerivation {
55 name = "gitolfs3-man";
56
57 src = ./docs/man;
58
59 installPhase = ''
60 install -D gitolfs3-authenticate.1 $out/share/man/gitolfs3-authenticate.1
61 install -D gitolfs3-server.1 $out/share/man/gitolfs3-server.1
62 install -D gitolfs3-shell.1 $out/share/man/gitolfs3-shell.1
63 '';
64 };
65
66 gitolfs3 = pkgs.buildEnv {
67 name = "gitolfs3";
68
69 paths = [ gitolfs3-bare gitolfs3-man ];
70
71 pathsToLink = [ "/bin" "/share/man" ];
72 };
53 in 73 in
54 { 74 {
55 checks = { 75 checks = {