depot/pkgs/applications/version-management/git-publish/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

33 lines
829 B
Nix

{ lib, stdenv, python, perl, fetchFromGitHub, installShellFiles }:
stdenv.mkDerivation rec {
pname = "git-publish";
version = "1.8.2";
src = fetchFromGitHub {
owner = "stefanha";
repo = "git-publish";
rev = "v${version}";
hash = "sha256-jjpbr+ZqG4U8/z0PurnXR+IUKQkG3QB8YqhDkH8uu2Y=";
};
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 = [ ];
homepage = "https://github.com/stefanha/git-publish";
mainProgram = "git-publish";
};
}