gitstats: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-11-02 14:24:09 +01:00
parent e4726e19e7
commit a76d49eaf8

View File

@ -1,14 +1,15 @@
{ lib, stdenv, fetchzip, perl, python2, gnuplot, coreutils, gnugrep }:
{ lib, stdenv, fetchFromGitHub, perl, python2, gnuplot, coreutils, gnugrep }:
stdenv.mkDerivation rec {
pname = "gitstats";
version = "2016-01-08";
# upstream does not make releases
src = fetchzip {
url = "https://github.com/hoxu/gitstats/archive/55c5c285558c410bb35ebf421245d320ab9ee9fa.zip";
sha256 = "1bfcwhksylrpm88vyp33qjby4js31zcxy7w368dzjv4il3fh2i59";
name = "${pname}-${version}" + "-src";
src = fetchFromGitHub {
owner = "hoxu";
repo = "gitstats";
rev = "55c5c285558c410bb35ebf421245d320ab9ee9fa";
sha256 = "sha256-qUQB3aCRbPkbMoMf39kPQ0vil8RjXL8RqjdTryfkzK0=";
};
nativeBuildInputs = [ perl ];