1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00
nixpkgs/pkgs/applications/version-management/git-publish/default.nix

34 lines
856 B
Nix
Raw Normal View History

2022-09-08 11:45:14 +01:00
{ lib, stdenv, python, perl, fetchFromGitHub, installShellFiles }:
stdenv.mkDerivation rec {
pname = "git-publish";
2024-01-31 23:17:59 +00:00
version = "1.8.2";
2022-09-08 11:45:14 +01:00
src = fetchFromGitHub {
owner = "stefanha";
repo = "git-publish";
rev = "v${version}";
2024-01-31 23:17:59 +00:00
hash = "sha256-jjpbr+ZqG4U8/z0PurnXR+IUKQkG3QB8YqhDkH8uu2Y=";
2022-09-08 11:45:14 +01:00
};
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";
2023-11-27 01:17:53 +00:00
mainProgram = "git-publish";
2022-09-08 11:45:14 +01:00
};
}