16 stdenv.mkDerivation (finalAttrs: {
20 src = fetchFromGitHub {
23 rev = "refs/tags/${finalAttrs.version}";
24 hash = "sha256-PUYsT0VDEzerPqwrLJrET4kSsWsQhtnfmLepeaqtA+I=";
27 postPatch = lib.optional stdenv.hostPlatform.isDarwin ''
28 substituteInPlace Makefile --replace-fail '-fanalyzer' '-Xanalyzer'
44 makeFlags = [ "prefix=${placeholder "out"}" ];
51 # Disabled for Darwin because requires macFUSE installed outside NixOS
52 tests.version = lib.optionalAttrs stdenv.hostPlatform.isLinux (
54 command = "${lib.getExe finalAttrs.finalPackage} --version";
55 package = finalAttrs.finalPackage;
58 updateScript = nix-update-script { };
62 changelog = "https://github.com/fangfufu/httpdirfs/releases/tag/${finalAttrs.version}";
63 description = "FUSE filesystem for HTTP directory listings";
64 homepage = "https://github.com/fangfufu/httpdirfs";
65 license = lib.licenses.gpl3Only;
66 mainProgram = "httpdirfs";
67 maintainers = with lib.maintainers; [ sbruder schnusch anthonyroussel ];
68 platforms = lib.platforms.unix;