nixpkgs/pkgs/tools/cd-dvd/cdrdao/default.nix
2023-04-30 20:53:39 +03:00

35 lines
967 B
Nix

{lib, stdenv, fetchurl, libvorbis, libmad, pkg-config, libao}:
stdenv.mkDerivation rec {
pname = "cdrdao";
version = "1.2.5";
src = fetchurl {
url = "mirror://sourceforge/cdrdao/cdrdao-${version}.tar.bz2";
hash = "sha256-0ZtnyFPF26JAavqrbNeI53817r5jTKxGeVKEd8e+AbY=";
};
makeFlags = [ "RM=rm" "LN=ln" "MV=mv" ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libvorbis libmad libao ];
hardeningDisable = [ "format" ];
# 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.
env.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 = "https://cdrdao.sourceforge.net/";
platforms = platforms.linux;
license = licenses.gpl2;
};
}