nixpkgs/pkgs/applications/networking/p2p/ldcpp/1.0.1.nix
Eelco Dolstra fcad0b0a5a * Cleaned up a lot of description fields that contained newlines.
Some of these should be longDescriptions, but most others just
  shouldn't contain newlines.  E.g. write

    description = "Bla";

  and not

    description = ''
      Bla
    '';

  This pollutes "nix-env -qa --description" output.

svn path=/nixpkgs/trunk/; revision=14310
2009-03-03 13:27:40 +00:00

30 lines
869 B
Nix

args : with args; with builderDefs;
let localDefs = builderDefs.passthru.function ((rec {
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"];
}) // args);
in with localDefs;
stdenv.mkDerivation rec {
name = "ldcpp-"+version;
builder = writeScript (name + "-builder")
(textClosure localDefs
[doScons doForceShare doPropagate]);
meta = {
description = "Linux DC++ - Direct Connect client";
inherit src;
};
}