summary refs log tree commit diff
path: root/pkgs/tools/typesetting
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2021-12-27 17:26:06 +0800
committerGitHub <noreply@github.com>2021-12-27 17:26:06 +0800
commitf9c03b1ee9862e47cda7ea38f2beb52b32c2fe76 (patch)
tree4fcc8349c5b87fa565637e0b9c33670888b2ca24 /pkgs/tools/typesetting
parent8d2ea10d45dde9b06c108cd509b823c07b71b4da (diff)
parent3d3a40f16bb1c4434fa0d15816b924cdfd97e459 (diff)
downloadnixpkgs-f9c03b1ee9862e47cda7ea38f2beb52b32c2fe76.tar
nixpkgs-f9c03b1ee9862e47cda7ea38f2beb52b32c2fe76.tar.gz
nixpkgs-f9c03b1ee9862e47cda7ea38f2beb52b32c2fe76.tar.bz2
nixpkgs-f9c03b1ee9862e47cda7ea38f2beb52b32c2fe76.tar.lz
nixpkgs-f9c03b1ee9862e47cda7ea38f2beb52b32c2fe76.tar.xz
nixpkgs-f9c03b1ee9862e47cda7ea38f2beb52b32c2fe76.tar.zst
nixpkgs-f9c03b1ee9862e47cda7ea38f2beb52b32c2fe76.zip
Merge pull request #151444 from trofi/update-halibut
halibut: 1.2 -> 1.3
Diffstat (limited to 'pkgs/tools/typesetting')
-rw-r--r--pkgs/tools/typesetting/halibut/default.nix24
1 files changed, 5 insertions, 19 deletions
diff --git a/pkgs/tools/typesetting/halibut/default.nix b/pkgs/tools/typesetting/halibut/default.nix
index ec5598e4d68..de76c4956d7 100644
--- a/pkgs/tools/typesetting/halibut/default.nix
+++ b/pkgs/tools/typesetting/halibut/default.nix
@@ -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";