nixpkgs/pkgs/tools/cd-dvd/cdrkit/default.nix
Franz Pletz aff1f4ab94 Use general hardening flag toggle lists
The following parameters are now available:

  * hardeningDisable
    To disable specific hardening flags
  * hardeningEnable
    To enable specific hardening flags

Only the cc-wrapper supports this right now, but these may be reused by
other wrappers, builders or setup hooks.

cc-wrapper supports the following flags:

  * fortify
  * stackprotector
  * pie (disabled by default)
  * pic
  * strictoverflow
  * format
  * relro
  * bindnow
2016-03-05 18:55:26 +01:00

44 lines
1.4 KiB
Nix

{stdenv, fetchurl, cmake, libcap, zlib, bzip2}:
stdenv.mkDerivation rec {
name = "cdrkit-1.1.11";
src = fetchurl {
url = "http://cdrkit.org/releases/${name}.tar.gz";
sha256 = "1nj7iv3xrq600i37na9a5idd718piiiqbs4zxvpjs66cdrsk1h6i";
};
buildInputs = [cmake libcap zlib bzip2];
hardeningDisable = [ "format" ];
# efi-boot-patch extracted from http://arm.koji.fedoraproject.org/koji/rpminfo?rpmID=174244
patches = [ ./include-path.patch ./cdrkit-1.1.9-efi-boot.patch ];
postInstall = ''
# file name compatibility with the old cdrecord (growisofs wants this name)
ln -s $out/bin/genisoimage $out/bin/mkisofs
ln -s $out/bin/wodim $out/bin/cdrecord
'';
makeFlags = "PREFIX=\$(out)";
meta = {
description = "Portable command-line CD/DVD recorder software, mostly compatible with cdrtools";
longDescription = ''
Cdrkit is a suite of programs for recording CDs and DVDs,
blanking CD-RW media, creating ISO-9660 filesystem images,
extracting audio CD data, and more. The programs included in
the cdrkit package were originally derived from several sources,
most notably mkisofs by Eric Youngdale and others, cdda2wav by
Heiko Eissfeldt, and cdrecord by Jörg Schilling. However,
cdrkit is not affiliated with any of these authors; it is now an
independent project.
'';
homepage = http://cdrkit.org/;
license = stdenv.lib.licenses.gpl2;
};
}