27 lines
761 B
Nix
27 lines
761 B
Nix
{ stdenv, fetchurl, ncurses, readline }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "udftools-${version}";
|
|
version = "1.0.0b3";
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/linux-udf/udftools/${version}/${name}.tar.gz";
|
|
sha256 = "180414z7jblby64556i8p24rcaas937zwnyp1zg073jdin3rw1y5";
|
|
};
|
|
|
|
buildInputs = [ ncurses readline ];
|
|
|
|
patches = [ ./gcc5.patch ];
|
|
hardening_fortify = false;
|
|
|
|
preConfigure = ''
|
|
sed -e '1i#include <limits.h>' -i cdrwtool/cdrwtool.c -i pktsetup/pktsetup.c
|
|
sed -e 's@[(]char[*][)]spm [+]=@spm = ((char*) spm) + @' -i wrudf/wrudf.c
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "UDF tools";
|
|
maintainers = with maintainers; [ raskin ];
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl2Plus;
|
|
};
|
|
}
|