2021-06-01 10:57:12 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, buildGoModule, git
|
|
|
|
, asciidoctor, ruby
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "reposurgeon";
|
|
|
|
version = "4.26";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-01 10:57:12 +00:00
|
|
|
url = "http://www.catb.org/~esr/reposurgeon/reposurgeon-${version}.tar.xz";
|
|
|
|
sha256 = "sha256-FuL5pvIM468hEm6rUBKGW6+WlYv4DPHNnpwpRGzMwlY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-01 10:57:12 +00:00
|
|
|
vendorSha256 = "sha256-KpdXI2Znhe0iCp0DjSZXzUYDZIz2KBRv1/SpaRTFMAc=";
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
runVend = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-01 10:57:12 +00:00
|
|
|
nativeBuildInputs = [ asciidoctor ruby ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-01 10:57:12 +00:00
|
|
|
postBuild = ''
|
|
|
|
patchShebangs .
|
|
|
|
make all HTMLFILES=
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-06-01 10:57:12 +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;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|