1 { lib, stdenv, fetchFromGitHub, git, makeWrapper, which, installShellFiles }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-83N0Ek6DawUrOc6s2Utzi8776bX4UTGS/a/OffkV44Y=";
25 "PREFIX=${placeholder "out"}"
26 "INSTALL_LIB=${placeholder "out"}/bin"
27 "INSTALL_MAN=${placeholder "out"}/share/man/man1"
31 installShellCompletion --bash --name git-subrepo.bash share/completion.bash
32 installShellCompletion --zsh share/zsh-completion/_git-subrepo
36 wrapProgram $out/bin/git-subrepo \
37 --prefix PATH : "${git}/bin"
41 homepage = "https://github.com/ingydotnet/git-subrepo";
42 description = "Git submodule alternative";
43 mainProgram = "git-subrepo";
44 license = licenses.mit;
45 platforms = platforms.unix;
46 maintainers = with maintainers; [ ryantrinkle ];