about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCaleb Maclennan <caleb@alerque.com>2021-03-02 18:31:11 +0300
committerDoron Behar <doron.behar@gmail.com>2021-09-06 12:52:11 +0300
commit074ef76e99b3d54ef4804bbc1f37122721cd2b18 (patch)
tree811f4901df37383b9edfcb3bd16faaca69cdc18c
parent8c7c2c31b20c22e45ef64dc6c7404eded5cdd041 (diff)
vcsh: 1.20170915 → 2.0.2
Co-authored-by: Bobby Rong <rjl931189261@126.com>
-rw-r--r--pkgs/applications/version-management/vcsh/default.nix36
1 files changed, 24 insertions, 12 deletions
diff --git a/pkgs/applications/version-management/vcsh/default.nix b/pkgs/applications/version-management/vcsh/default.nix
index e272342fe95dc..84716e7608179 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;
   };
 }