2011-09-23 08:52:10 +02:00
|
|
|
{ builderDefs, scons, pkgconfig, gtk, bzip2, libglade, openssl, libX11, boost, zlib }:
|
2010-07-29 20:55:16 +02:00
|
|
|
|
|
|
|
with builderDefs;
|
2011-09-23 08:52:10 +02:00
|
|
|
let localDefs = builderDefs.passthru.function ((rec {
|
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
|
|
|
url = http://launchpad.net/linuxdcpp/1.1/1.1.0/+download/linuxdcpp-1.1.0.tar.bz2;
|
|
|
|
sha256 = "66012740e9347a2e994c8af5609c40ebf3f86f767258e071a03ef39a2314298a";
|
|
|
|
};
|
2008-03-15 07:11:45 +01:00
|
|
|
|
2011-09-23 08:52:10 +02:00
|
|
|
buildInputs = [scons pkgconfig gtk bzip2 libglade
|
|
|
|
openssl libX11 boost];
|
|
|
|
configureFlags = [];
|
|
|
|
doScons = fullDepEntry (''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out
|
2011-09-23 08:52:10 +02:00
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lX11";
|
|
|
|
|
|
|
|
for i in gettext xgettext msgfmt msgcat; do
|
|
|
|
echo > $i
|
|
|
|
chmod a+x $i
|
|
|
|
done
|
|
|
|
export PATH=$PATH:$PWD
|
|
|
|
|
|
|
|
scons PREFIX=$out
|
|
|
|
scons PREFIX=$out install
|
|
|
|
'') ["minInit" "doUnpack" "addInputs" "defEnsureDir"];
|
|
|
|
}));
|
|
|
|
in with localDefs;
|
2008-03-15 07:11:45 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2011-09-23 08:52:10 +02:00
|
|
|
name = "ldcpp-1.1.0";
|
|
|
|
builder = writeScript (name + "-builder")
|
|
|
|
(textClosure localDefs
|
|
|
|
[doScons doForceShare doPropagate]);
|
|
|
|
meta = {
|
|
|
|
description = "Linux DC++ - Direct Connect client";
|
|
|
|
inherit src;
|
|
|
|
};
|
2008-03-15 07:11:45 +01:00
|
|
|
}
|