summary refs log tree commit diff
path: root/pkgs/tools/cd-dvd
diff options
context:
space:
mode:
authorc0bw3b <c0bw3b@users.noreply.github.com>2019-10-19 23:08:06 +0200
committerc0bw3b <c0bw3b@users.noreply.github.com>2019-10-22 20:57:50 +0200
commit382ca30e76e960672fb15edf1192192361de3b42 (patch)
treecbc982ebcca6d903edcde7cf9a25e2dca24bf9ce /pkgs/tools/cd-dvd
parent183b9d0957216f4e005c1aa9c04d3d0ea1fd88bb (diff)
downloadnixpkgs-382ca30e76e960672fb15edf1192192361de3b42.tar
nixpkgs-382ca30e76e960672fb15edf1192192361de3b42.tar.gz
nixpkgs-382ca30e76e960672fb15edf1192192361de3b42.tar.bz2
nixpkgs-382ca30e76e960672fb15edf1192192361de3b42.tar.lz
nixpkgs-382ca30e76e960672fb15edf1192192361de3b42.tar.xz
nixpkgs-382ca30e76e960672fb15edf1192192361de3b42.tar.zst
nixpkgs-382ca30e76e960672fb15edf1192192361de3b42.zip
cdrtools: 3.02a06 -> 3.02a09
Diffstat (limited to 'pkgs/tools/cd-dvd')
-rw-r--r--pkgs/tools/cd-dvd/cdrtools/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/tools/cd-dvd/cdrtools/default.nix b/pkgs/tools/cd-dvd/cdrtools/default.nix
new file mode 100644
index 00000000000..f4f07143a20
--- /dev/null
+++ b/pkgs/tools/cd-dvd/cdrtools/default.nix
@@ -0,0 +1,37 @@
+{ stdenv, fetchurl, m4, acl, libcap, Carbon, IOKit }:
+
+stdenv.mkDerivation rec {
+  pname = "cdrtools";
+  version = "3.02a09";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/cdrtools/${pname}-${version}.tar.bz2";
+    sha256 = "10ayj48jax2pvsv6j5gybwfsx7b74zdjj84znwag7wwf8n7l6a5a";
+  };
+
+  nativeBuildInputs = [ m4 ];
+  buildInputs = if stdenv.isDarwin then [ Carbon IOKit ] else [ acl libcap ];
+
+  postPatch = ''
+    sed "/\.mk3/d" -i libschily/Targets.man
+    substituteInPlace man/Makefile --replace "man4" ""
+    substituteInPlace RULES/rules.prg --replace "/bin/" ""
+  '';
+
+  dontConfigure = true;
+
+  makeFlags = [ "GMAKE_NOWARN=true" "INS_BASE=/" "INS_RBASE=/" "DESTDIR=${placeholder "out"}" ];
+
+  enableParallelBuilding = false; # parallel building fails on some linux machines
+
+  meta = with stdenv.lib; {
+    homepage = "http://cdrtools.sourceforge.net/private/cdrecord.html";
+    description = "Highly portable CD/DVD/BluRay command line recording software";
+    license = with licenses; [ cddl gpl2 lgpl21 ];
+    platforms = with platforms; linux ++ darwin;
+    # Licensing issues: This package contains code licensed under CDDL, GPL2
+    # and LGPL2. There is a debate regarding the legality of distributing this
+    # package in binary form.
+    hydraPlatforms = [];
+  };
+}