summary refs log tree commit diff
path: root/pkgs/tools/filesystems/udftools/default.nix
blob: 88153f7cb39ce9a06002dc7c8917825fed2ac867 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ 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 ];

  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 = with platforms; linux;
    license = licenses.gpl2Plus;
  };
}