nixpkgs/pkgs/applications/version-management/darcs/default.nix

30 lines
938 B
Nix
Raw Normal View History

{ cabal, curl, extensibleExceptions, filepath, hashedStorage
, haskeline, html, HTTP, mmap, mtl, network, parsec, random
, regexCompat, tar, terminfo, text, vector, zlib
}:
cabal.mkDerivation (self: {
pname = "darcs";
2012-09-10 15:08:21 +02:00
version = "2.8.2";
sha256 = "1gd8028k91hjsd9hvx3pw4h5zsn2ckc7pfp7f1f566dpp1g422v5";
isLibrary = true;
isExecutable = true;
buildDepends = [
extensibleExceptions filepath hashedStorage haskeline html HTTP
mmap mtl network parsec random regexCompat tar terminfo text vector
zlib
];
extraLibraries = [ curl ];
postInstall = ''
mkdir -p $out/etc/bash_completion.d
mv contrib/darcs_completion $out/etc/bash_completion.d/darcs
'';
meta = {
homepage = "http://darcs.net/";
description = "a distributed, interactive, smart revision control system";
license = "GPL";
platforms = self.ghc.meta.platforms;
maintainers = [ self.stdenv.lib.maintainers.andres ];
};
})