2011-07-08 01:48:22 +02:00
|
|
|
{ stdenv, fetchurl, ghc, libuuid, rsync, findutils, curl, perl, MissingH, utf8String
|
2011-07-20 14:13:07 +02:00
|
|
|
, QuickCheck2, pcreLight, SHA, dataenc, HTTP, testpack, git, ikiwiki, which
|
|
|
|
, monadControl }:
|
2011-03-23 16:57:53 +01:00
|
|
|
|
|
|
|
let
|
2011-08-23 10:52:06 +02:00
|
|
|
version = "3.20110819";
|
2011-03-23 16:57:53 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "git-annex-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ftp.de.debian.org/debian/pool/main/g/git-annex/git-annex_${version}.tar.gz";
|
2011-08-23 10:52:06 +02:00
|
|
|
sha256 = "1442ba4ff35ec8f92f336a5f1055d7ad8306348871a9697262f4f2af3b3c0943";
|
2011-03-23 16:57:53 +01:00
|
|
|
};
|
|
|
|
|
2011-07-08 01:48:22 +02:00
|
|
|
buildInputs = [ghc libuuid rsync findutils curl perl MissingH utf8String QuickCheck2 pcreLight
|
2011-07-20 14:13:07 +02:00
|
|
|
SHA dataenc HTTP testpack git ikiwiki which monadControl];
|
2011-07-08 01:48:22 +02:00
|
|
|
|
|
|
|
checkTarget = "test";
|
|
|
|
doCheck = true;
|
2011-03-23 16:57:53 +01:00
|
|
|
|
2011-03-23 22:05:01 +01:00
|
|
|
preConfigure = ''
|
|
|
|
makeFlagsArray=( PREFIX=$out )
|
|
|
|
sed -i -e 's|#!/usr/bin/perl|#!${perl}/bin/perl|' mdwn2man
|
|
|
|
'';
|
2011-03-23 16:57:53 +01:00
|
|
|
|
|
|
|
meta = {
|
2011-07-08 01:48:26 +02:00
|
|
|
homepage = "http://git-annex.branchable.com/";
|
|
|
|
description = "Manage files with git without checking them into git";
|
|
|
|
license = "GPLv3+";
|
2011-03-23 16:57:53 +01:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Git-annex allows managing files with git, without checking the
|
|
|
|
file contents into git. While that may seem paradoxical, it is
|
|
|
|
useful when dealing with files larger than git can currently
|
|
|
|
easily handle, whether due to limitations in memory, checksumming
|
|
|
|
time, or disk space.
|
|
|
|
|
|
|
|
Even without file content tracking, being able to manage files
|
|
|
|
with git, move files around and delete files with versioned
|
|
|
|
directory trees, and use branches and distributed clones, are all
|
|
|
|
very handy reasons to use git. And annexed files can co-exist in
|
|
|
|
the same git repository with regularly versioned files, which is
|
|
|
|
convenient for maintaining documents, Makefiles, etc that are
|
|
|
|
associated with annexed files but that benefit from full revision
|
|
|
|
control.
|
|
|
|
'';
|
|
|
|
|
2011-08-09 11:54:50 +02:00
|
|
|
platforms = ghc.meta.platforms;
|
2011-03-23 16:57:53 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
|
|
};
|
|
|
|
}
|