Merge pull request #151444 from trofi/update-halibut

halibut: 1.2 -> 1.3
This commit is contained in:
Bobby Rong 2021-12-27 17:26:06 +08:00 committed by GitHub
commit f9c03b1ee9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,29 +1,15 @@
{lib, stdenv, fetchurl, perl}:
{lib, stdenv, fetchurl, cmake, perl}:
stdenv.mkDerivation rec {
pname = "halibut";
version = "1.2";
version = "1.3";
src = fetchurl {
url = "http://ww.chiark.greenend.org.uk/~sgtatham/halibut/halibut-${version}/halibut-${version}.tar.gz";
sha256 = "0gqnhfqf555rfpk5xj1imbdxnbkkrv4wl3rrdb1r0wgj81igpv8s";
url = "https://www.chiark.greenend.org.uk/~sgtatham/halibut/halibut-${version}/halibut-${version}.tar.gz";
sha256 = "0ciikn878vivs4ayvwvr63nnhpcg12m8023xv514zxqpdxlzg85a";
};
buildInputs = [ perl ];
patchPhase = ''
sed -i -e s@/usr/local@$out@ Makefile
sed -i -e 's@(prefix)/man@(prefix)/share/man@' doc/Makefile
'';
installPhase = ''
mkdir -p $out/bin
mkdir -p $out/share/man/man1
pushd doc
make halibut.1
popd
make install
'';
nativeBuildInputs = [ cmake perl ];
meta = with lib; {
description = "Documentation production system for software manuals";