2017-06-14 20:28:28 +01:00
|
|
|
{ stdenv, fetchpatch, fetchFromGitHub, which, git, ronn, perl, ShellCommand, TestMost }:
|
2014-02-06 00:53:55 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-06-13 16:19:14 +01:00
|
|
|
version = "1.20170226"; # date of commit we're pulling
|
2015-02-25 22:14:36 +00:00
|
|
|
name = "vcsh-${version}";
|
2014-02-06 00:53:55 +00:00
|
|
|
|
2017-06-13 16:19:14 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RichiH";
|
|
|
|
repo = "vcsh";
|
|
|
|
rev = "36a7cedf196793a6d99f9d3ba2e69805cfff23ab";
|
|
|
|
sha256 = "16lb28m4k7n796cc1kifyc1ixry4bg69q9wqivjzygdsb77awgln";
|
2014-02-06 00:53:55 +00:00
|
|
|
};
|
|
|
|
|
2017-06-14 20:28:28 +01:00
|
|
|
patches =
|
2017-07-17 15:33:44 +01:00
|
|
|
[
|
|
|
|
(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";
|
|
|
|
})
|
2017-06-14 20:28:28 +01:00
|
|
|
];
|
|
|
|
|
2017-06-13 16:19:14 +01:00
|
|
|
buildInputs = [ which git ronn perl ShellCommand TestMost ];
|
2014-02-06 00:53:55 +00:00
|
|
|
|
2017-06-13 16:19:14 +01:00
|
|
|
installPhase = "make install PREFIX=$out";
|
2014-02-06 00:53:55 +00:00
|
|
|
|
2014-12-28 15:00:49 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-02-06 00:53:55 +00:00
|
|
|
description = "Version Control System for $HOME";
|
|
|
|
homepage = https://github.com/RichiH/vcsh;
|
2014-12-28 15:00:49 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ garbas ttuegel ];
|
|
|
|
platforms = platforms.unix;
|
2014-02-06 00:53:55 +00:00
|
|
|
};
|
|
|
|
}
|