summary refs log tree commit diff
path: root/pkgs/applications/misc/cdrtools/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/misc/cdrtools/default.nix')
-rw-r--r--pkgs/applications/misc/cdrtools/default.nix26
1 files changed, 9 insertions, 17 deletions
diff --git a/pkgs/applications/misc/cdrtools/default.nix b/pkgs/applications/misc/cdrtools/default.nix
index d1b3b284052..14ab69ebd2f 100644
--- a/pkgs/applications/misc/cdrtools/default.nix
+++ b/pkgs/applications/misc/cdrtools/default.nix
@@ -1,31 +1,23 @@
-{stdenv, fetchurl}:
+{ stdenv, fetchurl }:
 
 stdenv.mkDerivation rec {
-  name = "cdrtools-2.01";
+  name = "cdrtools-3.00";
 
-  configurePhase = "prefix=$out";
-
-  #hack, I'm getting "chown: invalid user: `bin" error, so replace chown by a nop dummy script
-  preInstall = ''
-    mkdir "$TMP/bin"
-    for i in chown chgrp; do
-      echo '#!/bin/sh' >> "$TMP/bin/$i"
-      chmod +x "$TMP/bin/$i"
-      PATH="$TMP/bin:$PATH"
-    done
-  '';
+  configurePhase = "true";
 
   src = fetchurl {
     url = "mirror://sourceforge/cdrtools/${name}.tar.bz2";
-    md5 = "d44a81460e97ae02931c31188fe8d3fd";
+    sha256 = "0ga2fdwn3898jas5mabb6cc2al9acqb2yyzph2w76m85414bd73z";
   };
 
-  patches = [./cdrtools-2.01-install.patch];
+  patches = [ ./cdrtools-2.01-install.patch ];
 
   meta = {
     homepage = http://sourceforge.net/projects/cdrtools/;
     description = "Highly portable CD/DVD/BluRay command line recording software";
-    broken = true;              # Build errors, probably because the source
-                                # can't deal with recent versions of gcc.
+    # Licensing issues: This package contains code licensed under CDDL, GPL2
+    # and LGPL2. There is debate regarding the legality of this licensing.
+    # Marked as unfree to avoid any possible legal issues.
+    license = stdenv.lib.licenses.unfree;
   };
 }