2008-08-19 07:54:09 +02:00
|
|
|
args : with args; with builderDefs;
|
2008-11-04 22:24:10 +01:00
|
|
|
let localDefs = builderDefs.passthru.function ((rec {
|
2008-03-15 07:11:45 +01:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
|
|
|
url = http://download2.berlios.de/linuxdcpp/linuxdcpp-1.0.1.tar.bz2;
|
|
|
|
sha256 = "0f0vvsa3x3nirqnf2lagpmbbj3pgdcp6wa2gvadj294b3va4hx34";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [scons pkgconfig gtk bzip2 pkgconfig libglade
|
|
|
|
openssl libX11];
|
|
|
|
configureFlags = [];
|
|
|
|
doScons = FullDepEntry (''
|
|
|
|
ensureDir $out
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lX11";
|
|
|
|
scons PREFIX=$out
|
|
|
|
scons PREFIX=$out install
|
|
|
|
'') ["minInit" "doUnpack" "addInputs" "defEnsureDir"];
|
2008-08-19 07:54:09 +02:00
|
|
|
}) // args);
|
2008-03-15 07:11:45 +01:00
|
|
|
in with localDefs;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ldcpp-"+version;
|
|
|
|
builder = writeScript (name + "-builder")
|
|
|
|
(textClosure localDefs
|
|
|
|
[doScons doForceShare doPropagate]);
|
|
|
|
meta = {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "Linux DC++ - Direct Connect client";
|
2008-03-15 07:11:45 +01:00
|
|
|
inherit src;
|
|
|
|
};
|
|
|
|
}
|