From 7f0fecce45c4e51fc3db2d7414cdf5f8339d4a93 Mon Sep 17 00:00:00 2001 From: Adam Dinwoodie Date: Sat, 21 Jun 2025 18:18:01 +0100 Subject: [PATCH] regionset: include README in package The README file contains most of the documentation for how to use this package, and is explicitly referenced in the manual. Add it to the compiled package so users can access it more easily, and make sure the path to the file is correct, too. --- pkgs/by-name/re/regionset/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/re/regionset/package.nix b/pkgs/by-name/re/regionset/package.nix index 547a307ea1fb..cd21a3f23873 100644 --- a/pkgs/by-name/re/regionset/package.nix +++ b/pkgs/by-name/re/regionset/package.nix @@ -16,9 +16,15 @@ stdenv.mkDerivation { sha256 = "1fgps85dmjvj41a5bkira43vs2aiivzhqwzdvvpw5dpvdrjqcp0d"; }; + prePatch = '' + substituteInPlace regionset.8 \ + --replace-fail /usr/share/doc/ "$out"/share/doc/ + ''; + installPhase = '' install -Dm755 {.,$out/bin}/regionset install -Dm644 {.,$out/share/man/man8}/regionset.8 + install -Dm644 {.,$out/share/doc/regionset}/README ''; meta = with lib; {