summary refs log tree commit diff
path: root/pkgs/tools/filesystems/httpdirfs/default.nix
blob: e027d5dd8df527a1545ce20f70cf3e956b4de6b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;
  };
}