depot/third_party/nixpkgs/pkgs/applications/version-management/git-and-tools/git-publish/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

32 lines
826 B
Nix

{ lib, stdenv, python, perl, fetchFromGitHub, installShellFiles }:
stdenv.mkDerivation rec {
pname = "git-publish";
version = "1.8.1";
src = fetchFromGitHub {
owner = "stefanha";
repo = "git-publish";
rev = "v${version}";
sha256 = "14rz5kli6sz171cvdc46z3z0nnpd57rliwr6nn6vjjc49yyfwgl4";
};
nativeBuildInputs = [ perl installShellFiles ];
buildInputs = [ python ];
installPhase = ''
runHook preInstall
install -Dm0755 git-publish $out/bin/git-publish
pod2man git-publish.pod > git-publish.1
installManPage git-publish.1
runHook postInstall
'';
meta = {
description = "Prepare and store patch revisions as git tags";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.lheckemann ];
homepage = "https://github.com/stefanha/git-publish";
};
}