-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Bobby Rong <[email protected]>
- Loading branch information
1 parent
8c7c2c3
commit 074ef76
Showing
1 changed file
with
24 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |