1{ lib, stdenv, fetchurl }:
2
3let version = "0.2"; in
4stdenv.mkDerivation {
5 pname = "regionset";
6 inherit version;
7
8 src = fetchurl {
9 url = "http://linvdr.org/download/regionset/regionset-${version}.tar.gz";
10 sha256 = "1fgps85dmjvj41a5bkira43vs2aiivzhqwzdvvpw5dpvdrjqcp0d";
11 };
12
13 installPhase = ''
14 install -Dm755 {.,$out/bin}/regionset
15 install -Dm644 {.,$out/share/man/man8}/regionset.8
16 '';
17
18 meta = with lib; {
19 inherit version;
20 homepage = "http://linvdr.org/projects/regionset/";
21 description = "Tool for changing the region code setting of DVD players";
22 license = licenses.gpl2Plus;
23 platforms = platforms.linux;
24 };
25}