summary refs log tree commit diff
path: root/pkgs/applications/version-management/arch/default.nix
blob: 0a54eabd59539e599cde4e63d1f54b51ea583f30 (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
args: with args;

stdenv.mkDerivation rec {
  name = "tla-1.3.5";
  src = fetchurl {
    url = "mirror://gnu/gnu-arch/" + name + ".tar.gz";
    sha256 = "01mfzj1i6p4s8191cgd5850hds1zls88hkf9rb6qx1vqjv585aj0";
  };

  patches = [ ./configure-tmpdir.patch ];

  buildInputs = [which];
  propagatedBuildInputs = [diffutils gnupatch gnutar];

  # Instead of GNU Autoconf, tla uses Tom Lord's now
  # defunct `package-framework'.
  buildPhase = ''
    mkdir +build && cd +build &&		\
    ../src/configure --prefix="$out" &&		\
    make install
  '';

  meta = {
    description = ''GNU Arch (aka. `tla'), a distributed revision
    		    control system.'';
    homepage = http://www.gnu.org/software/gnu-arch/;
    license = "GPL";
  };
}