diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-10-14 19:33:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-14 19:33:18 +0200 |
commit | 51c05696b16086e0c6d14b4cd72c07da4dc0fc6a (patch) | |
tree | dcae93f288f855829b683065ce86061170ec6349 /pkgs/applications/version-management | |
parent | 9a22f2470f21e3320128e50265a8962229da5a85 (diff) | |
parent | 65e03bdb7670a9ce624ac072e0424070719c410d (diff) |
Merge pull request #190309 from DeterminateSystems/git-publish
Diffstat (limited to 'pkgs/applications/version-management')
-rw-r--r-- | pkgs/applications/version-management/git-and-tools/git-publish/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/git-publish/default.nix b/pkgs/applications/version-management/git-and-tools/git-publish/default.nix new file mode 100644 index 0000000000000..0f0eeff156b06 --- /dev/null +++ b/pkgs/applications/version-management/git-and-tools/git-publish/default.nix @@ -0,0 +1,32 @@ +{ 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"; + }; +} |