From 00632e239431b7e845fb7f20d0e0933fbc65caf7 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sat, 30 Mar 2024 16:48:46 +0100 Subject: [PATCH] httpdirfs: 1.2.3 -> 1.2.5 https://github.com/fangfufu/httpdirfs/compare/1.2.3...1.2.5 https://github.com/fangfufu/httpdirfs/releases/tag/1.2.5 https://github.com/fangfufu/httpdirfs/releases/tag/1.2.4 --- pkgs/tools/filesystems/httpdirfs/default.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/filesystems/httpdirfs/default.nix b/pkgs/tools/filesystems/httpdirfs/default.nix index caf75a26b74c..ea0f1a4ac4ee 100644 --- a/pkgs/tools/filesystems/httpdirfs/default.nix +++ b/pkgs/tools/filesystems/httpdirfs/default.nix @@ -4,6 +4,7 @@ fetchFromGitHub, fuse, gumbo, + help2man, lib, libuuid, nix-update-script, @@ -14,16 +15,23 @@ stdenv.mkDerivation (finalAttrs: { pname = "httpdirfs"; - version = "1.2.3"; + version = "1.2.5"; src = fetchFromGitHub { owner = "fangfufu"; repo = "httpdirfs"; rev = "refs/tags/${finalAttrs.version}"; - sha256 = "sha256-rdeBlAV3t/si9x488tirUGLZRYAxh13zdRIQe0OPd+A="; + sha256 = "sha256-PUYsT0VDEzerPqwrLJrET4kSsWsQhtnfmLepeaqtA+I="; }; - nativeBuildInputs = [ pkg-config ]; + postPatch = lib.optional stdenv.isDarwin '' + substituteInPlace Makefile --replace-fail '-fanalyzer' '-Xanalyzer' + ''; + + nativeBuildInputs = [ + help2man + pkg-config + ]; buildInputs = [ curl @@ -35,6 +43,10 @@ stdenv.mkDerivation (finalAttrs: { makeFlags = [ "prefix=${placeholder "out"}" ]; + postBuild = '' + make man + ''; + passthru = { # Disabled for Darwin because requires macFUSE installed outside NixOS tests.version = lib.optionalAttrs stdenv.isLinux ( @@ -47,6 +59,7 @@ stdenv.mkDerivation (finalAttrs: { }; meta = { + changelog = "https://github.com/fangfufu/httpdirfs/releases/tag/${finalAttrs.version}"; description = "A FUSE filesystem for HTTP directory listings"; homepage = "https://github.com/fangfufu/httpdirfs"; license = lib.licenses.gpl3Only;