* updated darcs to 1.0.5, added curl dependency
* added an experimental fetchdarcs function, based on fetchsvn (there are no expressions yet that use this function) svn path=/nixpkgs/trunk/; revision=4615
This commit is contained in:
parent
105150e281
commit
70c36821c6
@ -1,10 +1,10 @@
|
|||||||
{stdenv, fetchurl, ghc, zlib, ncurses}:
|
{stdenv, fetchurl, ghc, zlib, ncurses, curl}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "darcs-1.0.3";
|
name = "darcs-1.0.5";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://abridgegame.org/darcs/darcs-1.0.3.tar.gz;
|
url = http://abridgegame.org/darcs/darcs-1.0.5.tar.gz;
|
||||||
md5 = "d3fc141d1c91044e45ae74b74fc54728";
|
md5 = "9a9a4f84ed5b6258f7ab321713adf20b";
|
||||||
};
|
};
|
||||||
buildInputs = [ghc zlib ncurses];
|
buildInputs = [ghc zlib ncurses curl];
|
||||||
}
|
}
|
||||||
|
22
pkgs/build-support/fetchdarcs/builder.sh
Normal file
22
pkgs/build-support/fetchdarcs/builder.sh
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
source $stdenv/setup
|
||||||
|
|
||||||
|
tagtext=""
|
||||||
|
tagflags=""
|
||||||
|
if test -n "$tag"; then
|
||||||
|
tagtext="(tag $tag) "
|
||||||
|
tagflags="--tag=$tag"
|
||||||
|
fi
|
||||||
|
|
||||||
|
header "getting $url ${tagtext}into $out"
|
||||||
|
|
||||||
|
darcs get --no-pristine-tree $tagflags "$url" "$out"
|
||||||
|
# remove metadata, because it can change
|
||||||
|
rm -rf "$out/_darcs"
|
||||||
|
|
||||||
|
actual=$(nix-hash $out)
|
||||||
|
if test "$actual" != "$outputHash"; then
|
||||||
|
echo "hash is $actual, expected $outputHash" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
stopNest
|
16
pkgs/build-support/fetchdarcs/default.nix
Normal file
16
pkgs/build-support/fetchdarcs/default.nix
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{stdenv, darcs, nix}: {url, tag ? null, md5}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "fetchdarcs";
|
||||||
|
builder = ./builder.sh;
|
||||||
|
buildInputs = [darcs nix];
|
||||||
|
|
||||||
|
# Nix <= 0.7 compatibility.
|
||||||
|
id = md5;
|
||||||
|
|
||||||
|
outputHashAlgo = "md5";
|
||||||
|
outputHashMode = "recursive";
|
||||||
|
outputHash = md5;
|
||||||
|
|
||||||
|
inherit url tag;
|
||||||
|
}
|
@ -38,6 +38,10 @@ rec {
|
|||||||
inherit stdenv subversion nix;
|
inherit stdenv subversion nix;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fetchdarcs = (import ../build-support/fetchdarcs) {
|
||||||
|
inherit stdenv darcs nix;
|
||||||
|
};
|
||||||
|
|
||||||
substituter = ../build-support/substitute/substitute.sh;
|
substituter = ../build-support/substitute/substitute.sh;
|
||||||
|
|
||||||
makeWrapper = ../build-support/make-wrapper/make-wrapper.sh;
|
makeWrapper = ../build-support/make-wrapper/make-wrapper.sh;
|
||||||
@ -1271,7 +1275,7 @@ rec {
|
|||||||
uulib = import ../development/libraries/haskell/uulib {
|
uulib = import ../development/libraries/haskell/uulib {
|
||||||
inherit stdenv fetchurl ghc;
|
inherit stdenv fetchurl ghc;
|
||||||
};
|
};
|
||||||
|
|
||||||
### DEVELOPMENT / PERL MODULES
|
### DEVELOPMENT / PERL MODULES
|
||||||
|
|
||||||
perlBerkeleyDB = import ../development/perl-modules/BerkeleyDB {
|
perlBerkeleyDB = import ../development/perl-modules/BerkeleyDB {
|
||||||
@ -1771,7 +1775,7 @@ rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
darcs = import ../applications/version-management/darcs {
|
darcs = import ../applications/version-management/darcs {
|
||||||
inherit fetchurl stdenv ghc zlib ncurses;
|
inherit fetchurl stdenv ghc zlib ncurses curl;
|
||||||
};
|
};
|
||||||
|
|
||||||
pan = (import ../applications/networking/newsreaders/pan) {
|
pan = (import ../applications/networking/newsreaders/pan) {
|
||||||
|
Loading…
Reference in New Issue
Block a user