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

39 lines
889 B
Nix
Raw Normal View History

2021-04-14 17:22:35 +03:00
{ lib, stdenv, fetchurl, makeWrapper, buildGoModule, git
, asciidoctor, ruby
}:
buildGoModule rec {
pname = "reposurgeon";
version = "4.26";
2015-08-26 03:08:33 +03:00
src = fetchurl {
2021-04-14 17:22:35 +03:00
url = "http://www.catb.org/~esr/reposurgeon/reposurgeon-${version}.tar.xz";
sha256 = "sha256-FuL5pvIM468hEm6rUBKGW6+WlYv4DPHNnpwpRGzMwlY=";
2015-08-26 03:08:33 +03:00
};
2021-04-14 17:22:35 +03:00
vendorSha256 = "sha256-KpdXI2Znhe0iCp0DjSZXzUYDZIz2KBRv1/SpaRTFMAc=";
subPackages = [ "." ];
runVend = true;
2015-08-26 03:08:33 +03:00
2021-04-14 17:22:35 +03:00
nativeBuildInputs = [ asciidoctor ruby ];
2015-08-26 03:08:33 +03:00
2021-04-14 17:22:35 +03:00
postBuild = ''
patchShebangs .
make all HTMLFILES=
2015-08-26 03:08:33 +03:00
'';
2021-04-14 17:22:35 +03: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 03:08:33 +03:00
}