summary refs log tree commit diff
path: root/pkgs/os-specific/linux/regionset/default.nix
blob: 15030d1b19a282d9d145db6cbb572e72b99f39c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ 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";
  };

  installPhase = ''
    install -Dm755 {.,$out/bin}/regionset
    install -Dm644 {.,$out/share/man/man8}/regionset.8
  '';

  meta = with stdenv.lib; {
    inherit version;
    homepage = "http://linvdr.org/projects/regionset/";
    description = "Tool for changing the region code setting of DVD players";
    license = licenses.gpl2Plus;
    platforms = platforms.linux;
  };
}