2008-01-15 01:55:21 +01:00
|
|
|
args : with args;
|
2008-01-23 19:11:03 +01:00
|
|
|
let localDefs = builderDefs {
|
2008-01-15 01:55:21 +01:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
|
|
|
url = http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd+rw-tools-7.0.tar.gz;
|
|
|
|
sha256 = "08hljn2vfn794dfrfpp3m245dbpb6nhk40igfpqm6wg9qimc9zy9";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [cdrkit m4];
|
|
|
|
configureFlags = [];
|
|
|
|
makeFlags = [" prefix=\$out "];
|
|
|
|
} null; /* null is a terminator for sumArgs */
|
2008-01-23 19:11:03 +01:00
|
|
|
in with localDefs;
|
2008-01-15 01:55:21 +01:00
|
|
|
let
|
|
|
|
preBuild = FullDepEntry ("
|
2008-02-10 17:44:43 +01:00
|
|
|
sed -e '1i#define INT_MAX __INT_MAX__' -i *.c *.cpp
|
2008-01-15 01:55:21 +01:00
|
|
|
sed -e 's@/usr/local@'\$out'@g' -i Makefile.m4 Makefile
|
|
|
|
") [minInit doUnpack];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dvd+rw-tools-"+version;
|
|
|
|
builder = writeScript (name + "-builder")
|
2008-02-10 17:44:43 +01:00
|
|
|
(textClosure localDefs [preBuild addInputs (doDump "0") doMakeInstall doForceShare doPropagate]);
|
2008-01-15 01:55:21 +01:00
|
|
|
meta = {
|
|
|
|
description = "
|
|
|
|
DVD+RW tools.
|
|
|
|
";
|
2008-03-02 19:49:31 +01:00
|
|
|
inherit src;
|
2008-01-15 01:55:21 +01:00
|
|
|
};
|
|
|
|
}
|