Commit d503d493 authored by Peter Simons's avatar Peter Simons
Browse files

vcsh: update to latest version and add missing Perl test suite dependencies to fix the build

parent 9df0c12c
Loading
Loading
Loading
Loading
+10 −17
Original line number Diff line number Diff line
{ stdenv, fetchpatch, fetchFromGitHub, which, git, ronn, perl, ShellCommand, TestMost }:
{ stdenv, fetchFromGitHub, which, git, ronn, perl, ShellCommand
, TestMost, TestDifferences, TestDeep, TestException, TestWarn
}:

stdenv.mkDerivation rec {
  version = "1.20170226";       # date of commit we're pulling
  version = "1.20170915";       # date of commit we're pulling
  name = "vcsh-${version}";

  src = fetchFromGitHub {
    owner = "RichiH";
    repo = "vcsh";
    rev = "36a7cedf196793a6d99f9d3ba2e69805cfff23ab";
    sha256 = "16lb28m4k7n796cc1kifyc1ixry4bg69q9wqivjzygdsb77awgln";
    rev = "eadb8df6aa71a76e5be36492edcadb118bd862ac";
    sha256 = "1wfzp8167lcq6akdpbi8fikjv0z3h1i5minh3423dljc04q0klm1";
  };

  patches =
    [
      (fetchpatch {
        url = "https://patch-diff.githubusercontent.com/raw/RichiH/vcsh/pull/222.patch";
        sha256 = "0grdbiwq04x5qj0a1yd9a78g5v28dxhwl6mwxvgvvmzs6k5wnl3k";
      })
      (fetchpatch {
        url = "https://patch-diff.githubusercontent.com/raw/RichiH/vcsh/pull/228.patch";
        sha256 = "0sdn4mzrhaynw85knia2iw5b6rgy0l1rd6dwh0lwspnh668wqgam";
      })
  buildInputs = [
    which git ronn perl ShellCommand TestMost TestDifferences TestDeep
    TestException TestWarn
  ];

  buildInputs = [ which git ronn perl ShellCommand TestMost ];

  installPhase = "make install PREFIX=$out";

  meta = with stdenv.lib; {
+2 −1
Original line number Diff line number Diff line
@@ -5311,7 +5311,8 @@ with pkgs;
  vcftools = callPackage ../applications/science/biology/vcftools { };
  vcsh = callPackage ../applications/version-management/vcsh {
    inherit (perlPackages) ShellCommand TestMost;
    inherit (perlPackages) ShellCommand TestMost TestDifferences TestDeep
      TestException TestWarn;
  };
  vcstool = callPackage ../development/tools/vcstool { };