1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00

* Removed Darcs 1.x.

* Updated Darcs to 2.2.1 and switched to the Cabal builder.  However,
  there are some dependencies missing that Andres will add :-)

svn path=/nixpkgs/trunk/; revision=15128
This commit is contained in:
Eelco Dolstra 2009-04-18 15:42:59 +00:00
parent baad5d7cb4
commit 37f707fd92
4 changed files with 15 additions and 49 deletions

View file

@ -1,19 +1,18 @@
{stdenv, fetchurl, ghc, zlib, ncurses, curl, perl}:
{cabal /* , ghc, zlib, ncurses, curl, perl */}:
stdenv.mkDerivation {
name = "darcs-2.1.0";
src = fetchurl {
url = http://www.darcs.net/darcs-2.1.0.tar.gz;
sha256 = "d5a63e62bceb45905163d508c6b25158dab6aca367015566d8c539ec37107ab4";
};
cabal.mkDerivation (self : {
pname = "darcs";
version = "2.2.1";
sha256 = "0iy4d4qls6yhwmgv87pz4kmr5jh4bwigz1wfwzns71b68csynnsp";
buildInputs = [ghc zlib ncurses curl perl];
#buildInputs = [ghc zlib ncurses curl perl];
NIX_LDFLAGS = "-lz";
#NIX_LDFLAGS = "-lz";
meta = {
homepage = http://darcs.net/;
description = "Patch-based version management system";
};
patches = ./bash-completion.patch; # I didn't have "have"
}
})

View file

@ -1,22 +0,0 @@
{stdenv, fetchurl, ghc, zlib, ncurses, curl, getConfig}:
# you really should consider using darcs2 and updating your darcs-1 repos ..
# many performance improvements have been made if you use the darcs-2 or hashed format
# (darcs-2 is default now when runnig darcs 2.1.0)
# lookup darcs convert and make sure you understand the one way conversion..
assert getConfig ["darcs" "IreallyWantDarcsOne"] false;
stdenv.mkDerivation {
name = "darcs-1.0.9";
src = fetchurl {
url = http://www.darcs.net/darcs-1.0.9.tar.gz;
sha256 = "a5fe4d5a743d8052d6cbfcea480a44593f821afd8a42e6d6d4ae37d40ed23cd8";
};
buildInputs = [ghc zlib ncurses curl];
NIX_LDFLAGS = "-lz";
meta = {
description = "Patch-based version management system";
};
}

View file

@ -250,13 +250,6 @@ let
inherit stdenv darcs nix;
};
# only temporarely / don't know yet wether it's save to switch
# but I have trouble getting HAppS repos
fetchdarcs2 = import ../build-support/fetchdarcs {
inherit stdenv nix;
darcs = darcs2;
};
fetchsvn = import ../build-support/fetchsvn {
inherit stdenv subversion openssh;
sshSupport = true;
@ -2305,7 +2298,7 @@ let
*/
bleedingEdgeRepos = import ../development/misc/bleeding-edge-repos {
inherit getConfig fetchdarcs2 fetchurl lib;
inherit getConfig fetchurl lib;
};
ecj = import ../development/eclipse/ecj {
@ -7932,15 +7925,7 @@ let
inherit (gtkLibs) gtk glib;
};
darcs = import ../applications/version-management/darcs {
inherit fetchurl stdenv zlib ncurses curl getConfig;
ghc = ghc661;
};
# some speed bottle necks are resolved in this version I think .. perhaps you like to try it?
darcs2 = import ../applications/version-management/darcs/darcs-2.nix {
inherit fetchurl stdenv zlib ncurses curl ghc perl;
};
darcs = haskellPackages.darcs;
dia = import ../applications/graphics/dia {
inherit stdenv fetchurl pkgconfig perl perlXMLParser

View file

@ -143,6 +143,10 @@ rec {
# Applications.
darcs = import ../applications/version-management/darcs/darcs-2.nix {
inherit cabal;
};
xmobar = import ../applications/misc/xmobar {
inherit cabal;
inherit (pkgs) X11;