biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / version-management / git-subrepo / default.nix
blobe861bc17b8caa0c647a0e13fe9c32c7204fabdc2
1 { lib, stdenv, fetchFromGitHub, git, makeWrapper, which, installShellFiles }:
3 stdenv.mkDerivation rec {
4   pname = "git-subrepo";
5   version = "0.4.6";
7   src = fetchFromGitHub {
8     owner = "ingydotnet";
9     repo = "git-subrepo";
10     rev = version;
11     sha256 = "sha256-83N0Ek6DawUrOc6s2Utzi8776bX4UTGS/a/OffkV44Y=";
12   };
14   nativeBuildInputs = [
15     makeWrapper
16     which
17     installShellFiles
18   ];
20   buildInputs = [
21     git
22   ];
24   makeFlags = [
25     "PREFIX=${placeholder "out"}"
26     "INSTALL_LIB=${placeholder "out"}/bin"
27     "INSTALL_MAN=${placeholder "out"}/share/man/man1"
28   ];
30   postInstall = ''
31     installShellCompletion --bash --name git-subrepo.bash share/completion.bash
32     installShellCompletion --zsh share/zsh-completion/_git-subrepo
33   '';
35   postFixup = ''
36     wrapProgram $out/bin/git-subrepo \
37       --prefix PATH : "${git}/bin"
38   '';
40   meta = with lib; {
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 ];
47   };