2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, git }:
|
2018-12-07 00:00:00 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "git-test";
|
2018-12-07 00:00:00 +00:00
|
|
|
version = "1.0.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "spotify";
|
|
|
|
repo = "git-test";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "01h3f0andv1p7pwir3k6n01v92hgr5zbjadfwl144yjw9x37fm2f";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m755 -Dt $out/bin git-test
|
|
|
|
install -m444 -Dt $out/share/man/man1 git-test.1
|
|
|
|
|
|
|
|
wrapProgram $out/bin/git-test \
|
2021-01-15 13:21:58 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ git ]}"
|
2018-12-07 00:00:00 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-12-07 00:00:00 +00:00
|
|
|
description = "Test your commits";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/spotify/git-test";
|
2018-12-07 00:00:00 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|