summary refs log tree commit diff
path: root/pkgs/os-specific/linux/regionset
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2016-01-13 03:28:14 +0100
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2016-01-13 03:30:56 +0100
commit59047385579c94a21256d226b9951c100bb7ca3a (patch)
treece707f1dd5677bb8b16c53079711f6932b97cc66 /pkgs/os-specific/linux/regionset
parent9888fbd8d244eeb68fe2f11fd00fcc6e7548f7ec (diff)
downloadnixpkgs-59047385579c94a21256d226b9951c100bb7ca3a.tar
nixpkgs-59047385579c94a21256d226b9951c100bb7ca3a.tar.gz
nixpkgs-59047385579c94a21256d226b9951c100bb7ca3a.tar.bz2
nixpkgs-59047385579c94a21256d226b9951c100bb7ca3a.tar.lz
nixpkgs-59047385579c94a21256d226b9951c100bb7ca3a.tar.xz
nixpkgs-59047385579c94a21256d226b9951c100bb7ca3a.tar.zst
nixpkgs-59047385579c94a21256d226b9951c100bb7ca3a.zip
regionset: 20030629 -> 0.2
Later version with cleaned-up code and a very basic man page.
Diffstat (limited to 'pkgs/os-specific/linux/regionset')
-rw-r--r--pkgs/os-specific/linux/regionset/default.nix20
1 files changed, 13 insertions, 7 deletions
diff --git a/pkgs/os-specific/linux/regionset/default.nix b/pkgs/os-specific/linux/regionset/default.nix
index 699c4cd82b8..ba35d9f73ff 100644
--- a/pkgs/os-specific/linux/regionset/default.nix
+++ b/pkgs/os-specific/linux/regionset/default.nix
@@ -1,18 +1,24 @@
 { stdenv, fetchurl }:
 
+let version = "0.2"; in
 stdenv.mkDerivation {
-  name = "regionset-20030629";
+  name = "regionset-${version}";
 
   src = fetchurl {
-    url = "mirror://sourceforge/dvd/regionset.tar.gz";
-    sha256 = "0ssr7s0g60kq04y8v60rh2fzn9wp93al3v4rl0ybza1skild9v70";
+    url = "http://linvdr.org/download/regionset/regionset-${version}.tar.gz";
+    sha256 = "1fgps85dmjvj41a5bkira43vs2aiivzhqwzdvvpw5dpvdrjqcp0d";
   };
 
-  installPhase = "mkdir -p $out/sbin; cp regionset $out/sbin";
+  installPhase = ''
+    install -Dm755 {.,$out/bin}/regionset
+    install -Dm644 {.,$out/share/man/man8}/regionset.8
+  '';
 
-  meta = {
-    homepage = http://dvd.sourceforge.net/;
+  meta = with stdenv.lib; {
+    inherit version;
+    homepage = http://linvdr.org/projects/regionset/;
     descriptions = "Tool for changing the region code setting of DVD players";
-    platforms = stdenv.lib.platforms.linux;
+    license = licenses.gpl2Plus;
+    platforms = platforms.linux;
   };
 }