summary refs log tree commit diff
path: root/pkgs/applications/version-management/darcs/default.nix
blob: 8ec65e50adf326f82e70f22420014d2c5dc0da8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ cabal, curl, extensibleExceptions, filepath, hashedStorage
, haskeline, html, HTTP, mmap, mtl, network, parsec, random
, regexCompat, tar, terminfo, text, utf8String, vector, zlib
}:

cabal.mkDerivation (self: {
  pname = "darcs";
  version = "2.8.4";
  sha256 = "164zclgib9ql4rqykpdhhk2bad0m5v0k0iwzsj0z7nax5nxlvarz";
  isLibrary = true;
  isExecutable = true;
  buildDepends = [
    extensibleExceptions filepath hashedStorage haskeline html HTTP
    mmap mtl network parsec random regexCompat tar terminfo text
    utf8String vector zlib
  ];
  extraLibraries = [ curl ];
  doCheck = false;
  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";
    # FIXME: this gives an infinite recursion in the "darcs" attribute
    # in all-packages.nix.
    #platforms = self.ghc.meta.platforms;
    platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
    maintainers = [ self.stdenv.lib.maintainers.andres ];
  };
})