From 9e5ab467371deb8b1b1e0751eca46457918b0d19 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Tue, 4 May 2010 10:06:50 +0000 Subject: [PATCH] added git2cl script svn path=/nixpkgs/trunk/; revision=21590 --- .../git-and-tools/default.nix | 3 +++ .../git-and-tools/git2cl/default.nix | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/applications/version-management/git-and-tools/git2cl/default.nix diff --git a/pkgs/applications/version-management/git-and-tools/default.nix b/pkgs/applications/version-management/git-and-tools/default.nix index fc998a8b23ba..00931aaf3d55 100644 --- a/pkgs/applications/version-management/git-and-tools/default.nix +++ b/pkgs/applications/version-management/git-and-tools/default.nix @@ -104,4 +104,7 @@ rec { subversion; }; + git2cl = import ./git2cl { + inherit fetchgit stdenv perl; + }; } diff --git a/pkgs/applications/version-management/git-and-tools/git2cl/default.nix b/pkgs/applications/version-management/git-and-tools/git2cl/default.nix new file mode 100644 index 000000000000..026fc18c8018 --- /dev/null +++ b/pkgs/applications/version-management/git-and-tools/git2cl/default.nix @@ -0,0 +1,19 @@ +{ fetchgit +, stdenv +, perl +}: +stdenv.mkDerivation rec { + name = "git2cl"; + + src = fetchgit { + url = git://git.sv.gnu.org/git2cl.git; + rev = "8373c9f74993e218a08819cbcdbab3f3564bbeba"; + sha256 = "b0d39379640c8a12821442431e2121f7908ce1cc88ec8ec6bede218ea8c21f2f"; + }; + + buildCommand = '' + ensureDir $out/bin + cp ${src}/git2cl $out/bin + sed -i 's|/usr/bin/perl|${perl}/bin/perl|' $out/bin/git2cl + ''; +}