summary refs log tree commit diff
path: root/pkgs/applications/version-management/arch
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2008-02-17 13:44:30 +0000
committerLudovic Courtès <ludo@gnu.org>2008-02-17 13:44:30 +0000
commit4d86923c627ffef73f8f01bfd52d9cac4f5deed6 (patch)
treecdbbbaf04425df47db6fe0db711d2b3e8cdbfe20 /pkgs/applications/version-management/arch
parent3e7da325821cc2bc26802ea8b3587a924d8e06ef (diff)
downloadnixpkgs-4d86923c627ffef73f8f01bfd52d9cac4f5deed6.tar
nixpkgs-4d86923c627ffef73f8f01bfd52d9cac4f5deed6.tar.gz
nixpkgs-4d86923c627ffef73f8f01bfd52d9cac4f5deed6.tar.bz2
nixpkgs-4d86923c627ffef73f8f01bfd52d9cac4f5deed6.tar.lz
nixpkgs-4d86923c627ffef73f8f01bfd52d9cac4f5deed6.tar.xz
nixpkgs-4d86923c627ffef73f8f01bfd52d9cac4f5deed6.tar.zst
nixpkgs-4d86923c627ffef73f8f01bfd52d9cac4f5deed6.zip
Add GNU Arch (tla).
svn path=/nixpkgs/trunk/; revision=10714
Diffstat (limited to 'pkgs/applications/version-management/arch')
-rw-r--r--pkgs/applications/version-management/arch/configure-tmpdir.patch11
-rw-r--r--pkgs/applications/version-management/arch/default.nix29
2 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/arch/configure-tmpdir.patch b/pkgs/applications/version-management/arch/configure-tmpdir.patch
new file mode 100644
index 00000000000..2b39322ca22
--- /dev/null
+++ b/pkgs/applications/version-management/arch/configure-tmpdir.patch
@@ -0,0 +1,11 @@
+--- tla-1.3.5/src/build-tools/auto-conf-lib/gnu-patch-test	2006-07-20 08:34:28.000000000 +0200
++++ tla-1.3.5/src/build-tools/auto-conf-lib/gnu-patch-test	2008-02-17 13:00:07.000000000 +0100
+@@ -27,7 +27,7 @@ else
+ fi
+ 
+ CMP='cmp'    # we require a working 'cmp' utility
+-TMPDIR="/tmp/,patch-test.$$"
++TMPDIR="${TMPDIR:-/tmp}/,patch-test.$$"
+ 
+ ORIG_A="$TMPDIR/to-patch_a"
+ ORIG_PRISTINE_A="$TMPDIR/to-patch_a.the-original"
diff --git a/pkgs/applications/version-management/arch/default.nix b/pkgs/applications/version-management/arch/default.nix
new file mode 100644
index 00000000000..0a54eabd595
--- /dev/null
+++ b/pkgs/applications/version-management/arch/default.nix
@@ -0,0 +1,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";
+  };
+}