forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
38 lines
1.3 KiB
Nix
38 lines
1.3 KiB
Nix
{ lib, 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 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 = [];
|
|
};
|
|
}
|