diff options
author | Alyssa Ross <hi@alyssa.is> | 2019-01-07 02:18:36 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2019-01-07 02:18:47 +0000 |
commit | 36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2 (patch) | |
tree | b3faaf573407b32aa645237a4d16b82778a39a92 /nixpkgs/pkgs/applications/misc/cdrtools | |
parent | 4e31070265257dc67d120c27e0f75c2344fdfa9a (diff) | |
parent | abf060725d7614bd3b9f96764262dfbc2f9c2199 (diff) | |
download | nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.gz nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.bz2 nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.lz nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.xz nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.zst nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.zip |
Add 'nixpkgs/' from commit 'abf060725d7614bd3b9f96764262dfbc2f9c2199'
git-subtree-dir: nixpkgs git-subtree-mainline: 4e31070265257dc67d120c27e0f75c2344fdfa9a git-subtree-split: abf060725d7614bd3b9f96764262dfbc2f9c2199
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/cdrtools')
-rw-r--r-- | nixpkgs/pkgs/applications/misc/cdrtools/default.nix | 37 | ||||
-rw-r--r-- | nixpkgs/pkgs/applications/misc/cdrtools/fix-paths.patch | 32 |
2 files changed, 69 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/cdrtools/default.nix b/nixpkgs/pkgs/applications/misc/cdrtools/default.nix new file mode 100644 index 000000000000..a46565eb76ba --- /dev/null +++ b/nixpkgs/pkgs/applications/misc/cdrtools/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchurl, acl, libcap }: + +stdenv.mkDerivation rec { + name = "cdrtools-${version}"; + version = "3.02a06"; + + src = fetchurl { + url = "mirror://sourceforge/cdrtools/${name}.tar.bz2"; + sha256 = "1cayhfbhj5g2vgmkmq5scr23k0ka5fsn0dhn0n9yllj386csnygd"; + }; + + patches = [ ./fix-paths.patch ]; + + buildInputs = [ acl libcap ]; + + postPatch = '' + sed "/\.mk3/d" -i libschily/Targets.man + substituteInPlace man/Makefile --replace "man4" "" + ''; + + configurePhase = "true"; + + GMAKE_NOWARN = true; + + makeFlags = [ "INS_BASE=/" "INS_RBASE=/" "DESTDIR=$(out)" ]; + + meta = with stdenv.lib; { + homepage = https://sourceforge.net/projects/cdrtools/; + description = "Highly portable CD/DVD/BluRay command line recording software"; + license = with licenses; [ gpl2 lgpl2 cddl ]; + platforms = platforms.linux; + # 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 = []; + }; +} diff --git a/nixpkgs/pkgs/applications/misc/cdrtools/fix-paths.patch b/nixpkgs/pkgs/applications/misc/cdrtools/fix-paths.patch new file mode 100644 index 000000000000..f4a541210880 --- /dev/null +++ b/nixpkgs/pkgs/applications/misc/cdrtools/fix-paths.patch @@ -0,0 +1,32 @@ +diff -ru3 cdrtools-3.01-old/DEFAULTS/Defaults.linux cdrtools-3.01/DEFAULTS/Defaults.linux +--- cdrtools-3.01-old/DEFAULTS/Defaults.linux 2015-12-11 17:37:21.505848835 +0300 ++++ cdrtools-3.01/DEFAULTS/Defaults.linux 2015-12-11 17:37:32.155828925 +0300 +@@ -57,7 +57,8 @@ + # Installation config stuff + # + ########################################################################### +-INS_BASE= /opt/schily ++#INS_BASE= /opt/schily ++INS_BASE= $(out) + INS_KBASE= / + INS_RBASE= / + # +Only in cdrtools-3.01/DEFAULTS: Defaults.linux.orig +diff -ru3 cdrtools-3.01-old/RULES/rules.prg cdrtools-3.01/RULES/rules.prg +--- cdrtools-3.01-old/RULES/rules.prg 2015-12-11 17:37:21.500848844 +0300 ++++ cdrtools-3.01/RULES/rules.prg 2015-12-11 17:38:29.890720987 +0300 +@@ -43,10 +43,10 @@ + # + #SHELL= /bin/sh + +-LN= /bin/ln +-SYMLINK= /bin/ln -s +-RM= /bin/rm +-MV= /bin/mv ++LN= ln ++SYMLINK= ln -s ++RM= rm ++MV= mv + LORDER= lorder + TSORT= tsort + CTAGS= vctags |