nixpkgs/pkgs/applications/misc/cdrtools/default.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

2019-07-12 15:26:08 +00:00
{ stdenv, fetchurl, acl, libcap, Carbon, IOKit }:
stdenv.mkDerivation rec {
pname = "cdrtools";
2018-03-19 15:58:41 +00:00
version = "3.02a06";
src = fetchurl {
url = "mirror://sourceforge/cdrtools/${pname}-${version}.tar.bz2";
2018-03-19 15:58:41 +00:00
sha256 = "1cayhfbhj5g2vgmkmq5scr23k0ka5fsn0dhn0n9yllj386csnygd";
};
2015-12-11 22:36:52 +00:00
patches = [ ./fix-paths.patch ];
2019-07-12 15:26:08 +00:00
buildInputs = if stdenv.isDarwin then [ Carbon IOKit ] else [ acl libcap ];
2015-12-11 22:36:52 +00:00
postPatch = ''
sed "/\.mk3/d" -i libschily/Targets.man
substituteInPlace man/Makefile --replace "man4" ""
'';
2019-06-19 15:36:06 +00:00
dontConfigure = true;
2015-12-11 22:36:52 +00:00
GMAKE_NOWARN = true;
makeFlags = [ "INS_BASE=/" "INS_RBASE=/" "DESTDIR=$(out)" ];
2015-12-11 22:36:52 +00:00
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 ];
2019-07-12 15:26:08 +00:00
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 = [];
};
}