diff --git a/pkgs/tools/filesystems/httpdirfs/default.nix b/pkgs/tools/filesystems/httpdirfs/default.nix new file mode 100644 index 000000000000..e027d5dd8df5 --- /dev/null +++ b/pkgs/tools/filesystems/httpdirfs/default.nix @@ -0,0 +1,26 @@ +{ lib, stdenv, fetchFromGitHub, pkg-config, curl, expat, fuse, gumbo, libuuid }: + +stdenv.mkDerivation rec { + pname = "httpdirfs"; + version = "1.2.3"; + + src = fetchFromGitHub { + owner = "fangfufu"; + repo = pname; + rev = version; + sha256 = "sha256-rdeBlAV3t/si9x488tirUGLZRYAxh13zdRIQe0OPd+A="; + }; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ curl expat fuse gumbo libuuid ]; + + makeFlags = [ "prefix=${placeholder "out"}" ]; + + meta = with lib; { + description = "A FUSE filesystem for HTTP directory listings"; + homepage = "https://github.com/fangfufu/httpdirfs"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ sbruder schnusch ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f238682cadd3..a3b96b0c6eea 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6317,6 +6317,8 @@ with pkgs; http-getter = callPackage ../applications/networking/flent/http-getter.nix { }; + httpdirfs = callPackage ../tools/filesystems/httpdirfs { }; + httpdump = callPackage ../tools/security/httpdump { }; httpie = callPackage ../tools/networking/httpie { };