2010-07-29 19:55:16 +01:00
|
|
|
{ builderDefs, scons, pkgconfig, gtk, bzip2, libglade, openssl, libX11 }:
|
|
|
|
|
|
|
|
with builderDefs;
|
2008-11-04 21:24:10 +00:00
|
|
|
let localDefs = builderDefs.passthru.function ((rec {
|
2008-03-15 06:11:45 +00:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
2009-05-10 20:39:59 +01:00
|
|
|
url = http://launchpad.net/linuxdcpp/1.0/1.0.3/+download/linuxdcpp-1.0.3.tar.bz2;
|
|
|
|
sha256 = "0w9c8k13cl85y4v4av8ic6w4zkdivcj6p5q86llfh3sz077vckiv";
|
2008-03-15 06:11:45 +00:00
|
|
|
};
|
|
|
|
|
2010-07-29 19:55:16 +01:00
|
|
|
buildInputs = [scons pkgconfig gtk bzip2 libglade
|
2008-03-15 06:11:45 +00:00
|
|
|
openssl libX11];
|
|
|
|
configureFlags = [];
|
2009-05-20 00:25:58 +01:00
|
|
|
doScons = fullDepEntry (''
|
2008-03-15 06:11:45 +00:00
|
|
|
ensureDir $out
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lX11";
|
|
|
|
scons PREFIX=$out
|
|
|
|
scons PREFIX=$out install
|
|
|
|
'') ["minInit" "doUnpack" "addInputs" "defEnsureDir"];
|
2010-07-29 19:55:16 +01:00
|
|
|
}));
|
2008-03-15 06:11:45 +00:00
|
|
|
in with localDefs;
|
|
|
|
stdenv.mkDerivation rec {
|
2009-05-11 12:22:26 +01:00
|
|
|
name = "ldcpp-1.0.3";
|
2008-03-15 06:11:45 +00:00
|
|
|
builder = writeScript (name + "-builder")
|
|
|
|
(textClosure localDefs
|
|
|
|
[doScons doForceShare doPropagate]);
|
|
|
|
meta = {
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "Linux DC++ - Direct Connect client";
|
2008-03-15 06:11:45 +00:00
|
|
|
inherit src;
|
|
|
|
};
|
|
|
|
}
|