Browse Source

gitAndTools.git-test: init at 1.0.4

nixos-19.03
Mario Rodas 3 years ago
parent
commit
879a509d79
No known key found for this signature in database GPG Key ID: 325649BCA6D53027
  1. 2
      pkgs/applications/version-management/git-and-tools/default.nix
  2. 33
      pkgs/applications/version-management/git-and-tools/git-test/default.nix

2
pkgs/applications/version-management/git-and-tools/default.nix

@ -104,6 +104,8 @@ let
git-sync = callPackage ./git-sync { };
git-test = callPackage ./git-test { };
git2cl = callPackage ./git2cl { };
gitFastExport = callPackage ./fast-export { };

33
pkgs/applications/version-management/git-and-tools/git-test/default.nix

@ -0,0 +1,33 @@
{ stdenv, fetchFromGitHub, makeWrapper, git }:
stdenv.mkDerivation rec {
name = "git-test-${version}";
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 \
--prefix PATH : "${stdenv.lib.makeBinPath [ git ]}"
'';
meta = with stdenv.lib; {
description = "Test your commits";
homepage = https://github.com/spotify/git-test;
license = licenses.asl20;
maintainers = [ maintainers.marsam ];
platforms = platforms.all;
};
}
Loading…
Cancel
Save