From 074ef76e99b3d54ef4804bbc1f37122721cd2b18 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Tue, 2 Mar 2021 18:31:11 +0300 Subject: [PATCH] =?UTF-8?q?vcsh:=201.20170915=20=E2=86=92=202.0.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bobby Rong --- .../version-management/vcsh/default.nix | 36 ++++++++++++------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/pkgs/applications/version-management/vcsh/default.nix b/pkgs/applications/version-management/vcsh/default.nix index e272342fe95d..84716e760817 100644 --- a/pkgs/applications/version-management/vcsh/default.nix +++ b/pkgs/applications/version-management/vcsh/default.nix @@ -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; }; }