2013-02-28 13:04:15 +01:00
|
|
|
{ stdenv, fetchurl, perl, which, ikiwiki, ghc, aeson, async, blazeBuilder
|
|
|
|
, bloomfilter, bup, caseInsensitive, clientsession, cryptoApi, curl, dataDefault
|
|
|
|
, dataenc, DAV, dbus, dns, editDistance, extensibleExceptions, filepath, git
|
|
|
|
, gnupg1, gnutls, hamlet, hinotify, hS3, hslogger, httpConduit, httpTypes, HUnit
|
|
|
|
, IfElse, json, liftedBase, lsof, MissingH, monadControl, mtl, network
|
|
|
|
, networkInfo, networkMulticast, networkProtocolXmpp, openssh, QuickCheck
|
|
|
|
, random, regexCompat, rsync, SafeSemaphore, SHA, stm, text, time, transformers
|
|
|
|
, transformersBase, utf8String, uuid, wai, waiLogger, warp, xmlConduit, xmlTypes
|
|
|
|
, yesod, yesodDefault, yesodForm, yesodStatic, testpack
|
|
|
|
, cabalInstall # TODO: remove this build input at the next update
|
2011-09-03 15:17:36 +02:00
|
|
|
}:
|
2011-03-23 16:57:53 +01:00
|
|
|
|
|
|
|
let
|
2013-02-28 11:31:44 +01:00
|
|
|
version = "4.20130227";
|
2011-03-23 16:57:53 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "git-annex-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2012-11-27 13:46:27 +01:00
|
|
|
url = "http://git.kitenet.net/?p=git-annex.git;a=snapshot;sf=tgz;h=${version}";
|
2013-02-28 11:31:44 +01:00
|
|
|
sha256 = "1zw5kzb08zz43ahbhrazjpq9zn73l3kwnqilp464frf7fg7rwan6";
|
2012-03-15 19:07:49 +01:00
|
|
|
name = "git-annex-${version}.tar.gz";
|
2011-03-23 16:57:53 +01:00
|
|
|
};
|
|
|
|
|
2013-02-28 13:04:15 +01:00
|
|
|
buildInputs = [ ghc aeson async blazeBuilder bloomfilter bup ikiwiki
|
|
|
|
caseInsensitive clientsession cryptoApi curl dataDefault dataenc DAV dbus
|
|
|
|
dns editDistance extensibleExceptions filepath git gnupg1 gnutls hamlet
|
|
|
|
hinotify hS3 hslogger httpConduit httpTypes HUnit IfElse json liftedBase
|
|
|
|
lsof MissingH monadControl mtl network networkInfo networkMulticast
|
|
|
|
networkProtocolXmpp openssh QuickCheck random regexCompat rsync
|
|
|
|
SafeSemaphore SHA stm text time transformers transformersBase utf8String
|
|
|
|
uuid wai waiLogger warp xmlConduit xmlTypes yesod yesodDefault yesodForm
|
|
|
|
yesodStatic which perl testpack cabalInstall ];
|
2011-07-08 01:48:22 +02:00
|
|
|
|
2013-02-28 13:04:15 +01:00
|
|
|
configurePhase = ''
|
2011-03-23 22:05:01 +01:00
|
|
|
makeFlagsArray=( PREFIX=$out )
|
2013-02-28 13:04:15 +01:00
|
|
|
patchShebangs .
|
|
|
|
|
|
|
|
# cabal-install wants to store stuff in $HOME
|
|
|
|
mkdir ../tmp
|
|
|
|
export HOME=$PWD/../tmp
|
|
|
|
|
|
|
|
cabal configure -f-fast -ftestsuite -f-android -fproduction -fdns -fxmpp -fpairing -fwebapp -fassistant -fdbus -finotify -fwebdav -fs3
|
2011-03-23 22:05:01 +01:00
|
|
|
'';
|
2011-03-23 16:57:53 +01:00
|
|
|
|
2013-02-28 13:04:15 +01:00
|
|
|
checkPhase = "./git-annex test";
|
|
|
|
|
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";
|
2012-01-15 12:44:08 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
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 ];
|
|
|
|
};
|
|
|
|
}
|