nixpkgs/pkgs/applications/version-management/reposurgeon/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
870 B
Nix
Raw Normal View History

2021-04-14 14:22:35 +00:00
{ lib, stdenv, fetchurl, makeWrapper, buildGoModule, git
, asciidoctor, ruby
}:
buildGoModule rec {
pname = "reposurgeon";
version = "4.26";
2015-08-26 00:08:33 +00:00
src = fetchurl {
2021-04-14 14:22:35 +00:00
url = "http://www.catb.org/~esr/reposurgeon/reposurgeon-${version}.tar.xz";
sha256 = "sha256-FuL5pvIM468hEm6rUBKGW6+WlYv4DPHNnpwpRGzMwlY=";
2015-08-26 00:08:33 +00:00
};
vendorSha256 = "sha256-QpgRCnsOOZujE405dCe+PYg/zNkqnrfZFfbBFo7adjY=";
2021-04-14 14:22:35 +00:00
subPackages = [ "." ];
nativeBuildInputs = [ asciidoctor ruby ];
2015-08-26 00:08:33 +00:00
2021-04-14 14:22:35 +00:00
postBuild = ''
patchShebangs .
make all HTMLFILES=
2015-08-26 00:08:33 +00:00
'';
2021-04-14 14:22:35 +00:00
postInstall = ''
make install prefix=$out HTMLFILES=
'';
meta = {
description = "A tool for editing version-control repository history";
license = lib.licenses.bsd3;
homepage = "http://www.catb.org/esr/reposurgeon/";
maintainers = with lib.maintainers; [ dfoxfranke ];
platforms = lib.platforms.all;
};
2015-08-26 00:08:33 +00:00
}