nixpkgs/pkgs/tools/cd-dvd/cdrdao/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.1 KiB
Nix
Raw Normal View History

2021-01-17 03:51:22 +00:00
{lib, stdenv, fetchurl, libvorbis, libmad, pkg-config, libao}:
2021-08-12 19:47:47 +00:00
stdenv.mkDerivation rec {
pname = "cdrdao";
version = "1.2.3";
src = fetchurl {
2021-08-12 19:47:47 +00:00
url = "mirror://sourceforge/cdrdao/cdrdao-${version}.tar.bz2";
sha256 = "0pmpgx91j984snrsxbq1dgf3ximks2dfh1sqqmic72lrls7wp4w1";
};
makeFlags = [ "RM=rm" "LN=ln" "MV=mv" ];
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ pkg-config ];
2017-10-24 09:06:29 +00:00
buildInputs = [ libvorbis libmad libao ];
hardeningDisable = [ "format" ];
2016-02-08 17:19:49 +00:00
# Adjust some headers to match glibc 2.12 ... patch is a diff between
# the cdrdao CVS head and the 1.2.3 release.
patches = [ ./adjust-includes-for-glibc-212.patch ];
# we have glibc/include/linux as a symlink to the kernel headers,
# and the magic '..' points to kernelheaders, and not back to the glibc/include
postPatch = ''
sed -i 's,linux/../,,g' dao/sg_err.h
'';
# Needed on gcc >= 6.
NIX_CFLAGS_COMPILE = "-Wno-narrowing";
meta = with lib; {
description = "A tool for recording audio or data CD-Rs in disk-at-once (DAO) mode";
homepage = "http://cdrdao.sourceforge.net/";
2018-09-07 20:40:38 +00:00
platforms = platforms.linux;
license = licenses.gpl2;
};
}