diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2025-12-28 16:55:12 -0600 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2025-12-28 16:55:12 -0600 |
| commit | 16d918ac65bd9bc6de8cf2b35e9389f767442d04 (patch) | |
| tree | c77477932bd44142196b51fca53269e3289782a1 | |
| parent | 788d47d2f1bbee3830c6b1f01ea3f939ecdc40e6 (diff) | |
| download | hm-reposync-16d918ac65bd9bc6de8cf2b35e9389f767442d04.tar.xz hm-reposync-16d918ac65bd9bc6de8cf2b35e9389f767442d04.zip | |
install manpagev0.1.0
| -rw-r--r-- | hm-reposync.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/hm-reposync.nix b/hm-reposync.nix index 83a1129..9a0a42a 100644 --- a/hm-reposync.nix +++ b/hm-reposync.nix @@ -177,7 +177,7 @@ in { ${lines (lib.mapAttrsToList (name: r: "${name}) ${fname name} ;;") repocfg)} -a|--all) all ;; ''; - src = pkgs.writeShellScriptBin "reposync" '' + reposyncSrc = pkgs.writeShellScriptBin "reposync" '' export PATH="${pkgs.git}/bin:$PATH" export PATH="${pkgs.stow}/bin:$PATH" ${builtins.readFile ./reposync-functions.sh} @@ -192,16 +192,17 @@ in { hm-reposync = pkgs.stdenv.mkDerivation rec { name = "hm-reposync"; - inherit src; + srcs = [reposyncSrc ./reposync.1]; dontUnpack = true; buildInputs = with pkgs; [git stow]; installPhase = '' - # TODO install manpage - mkdir -p $out/bin - cp $src/bin/reposync $out/bin + read src_bin src_man <<< "$srcs" # split srcs + mkdir -p $out/bin $out/share/man/man1 + cp $src_bin/bin/reposync $out/bin chmod +x $out/bin/reposync + cp $src_man $out/share/man/man1/reposync.1 ''; }; in lib.mkIf cfg.enable { |
