2015-04-03 15:36:56 +01:00
|
|
|
{ stdenv, fetchurl, ncurses, readline }:
|
2011-01-10 11:04:20 +00:00
|
|
|
|
2015-04-03 15:36:56 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "udftools-${version}";
|
|
|
|
version = "1.0.0b3";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/linux-udf/udftools/${version}/${name}.tar.gz";
|
|
|
|
sha256 = "180414z7jblby64556i8p24rcaas937zwnyp1zg073jdin3rw1y5";
|
2011-01-10 11:04:20 +00:00
|
|
|
};
|
|
|
|
|
2015-04-03 15:36:56 +01:00
|
|
|
buildInputs = [ ncurses readline ];
|
2011-01-10 11:04:20 +00:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "fortify" ];
|
2016-02-07 23:27:47 +00:00
|
|
|
|
2016-03-26 15:47:46 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-std=gnu90";
|
|
|
|
|
2015-04-03 15:36:56 +01:00
|
|
|
preConfigure = ''
|
2011-01-10 11:04:20 +00:00
|
|
|
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
|
2016-03-26 15:47:46 +00:00
|
|
|
sed -e '27i#include <string.h>' -i include/udf_endian.h
|
|
|
|
sed -e '38i#include <string.h>' -i wrudf/wrudf-cdrw.c
|
|
|
|
sed -e '12i#include <string.h>' -i wrudf/wrudf-cdr.c
|
|
|
|
sed -e '37i#include <stdlib.h>' -i wrudf/ide-pc.c
|
2015-04-03 15:36:56 +01:00
|
|
|
'';
|
2011-01-10 11:04:20 +00:00
|
|
|
|
2015-04-03 15:36:56 +01:00
|
|
|
meta = with stdenv.lib; {
|
2011-01-10 11:04:20 +00:00
|
|
|
description = "UDF tools";
|
2015-04-03 15:36:56 +01:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2015-11-25 22:04:57 +00:00
|
|
|
platforms = platforms.linux;
|
2015-04-03 15:36:56 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2011-01-10 11:04:20 +00:00
|
|
|
};
|
2015-04-03 15:36:56 +01:00
|
|
|
}
|