Merge pull request #136720 from alerque/vcsh

vcsh: 1.20170915 → 2.0.2
This commit is contained in:
Doron Behar 2021-09-07 13:15:23 +03:00 committed by GitHub
commit 5c0a3345a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,26 +1,38 @@
{ lib, stdenv, fetchFromGitHub, which, git, ronn, perlPackages }:
{ lib, stdenv
, fetchurl
, makeWrapper
, pkg-config
, git
, perlPackages
}:
stdenv.mkDerivation {
version = "1.20170915"; # date of commit we're pulling
stdenv.mkDerivation rec {
pname = "vcsh";
version = "2.0.2";
src = fetchFromGitHub {
owner = "RichiH";
repo = "vcsh";
rev = "eadb8df6aa71a76e5be36492edcadb118bd862ac";
sha256 = "1wfzp8167lcq6akdpbi8fikjv0z3h1i5minh3423dljc04q0klm1";
src = fetchurl {
url = "https://github.com/RichiH/vcsh/releases/download/v${version}/${pname}-${version}.tar.xz";
sha256 = "0qdd4f6rm5rhnym9f114pcj9vafhjjpg962c4g420rn78fxhpz1z";
};
buildInputs = [ which git ronn ]
++ (with perlPackages; [ perl ShellCommand TestMost TestDifferences TestDeep TestException TestWarn ]);
nativeBuildInputs = [
pkg-config
makeWrapper
];
installPhase = "make install PREFIX=$out";
buildInputs = [ git ];
checkInputs = []
++ (with perlPackages; [ perl ShellCommand TestMost ]);
outputs = [ "out" "doc" "man" ];
meta = with lib; {
description = "Version Control System for $HOME";
homepage = "https://github.com/RichiH/vcsh";
changelog = "https://github.com/RichiH/vcsh/blob/v${version}/changelog";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ ttuegel ];
maintainers = with maintainers; [ ttuegel alerque ];
platforms = platforms.unix;
};
}