Adam Dinwoodie 7f0fecce45 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.
2025-06-21 18:26:26 +01:00

39 lines
873 B
Nix

{
lib,
stdenv,
fetchurl,
}:
let
version = "0.2";
in
stdenv.mkDerivation {
pname = "regionset";
inherit version;
src = fetchurl {
url = "http://linvdr.org/download/regionset/regionset-${version}.tar.gz";
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; {
inherit version;
homepage = "http://linvdr.org/projects/regionset/";
description = "Tool for changing the region code setting of DVD players";
mainProgram = "regionset";
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}