about summary refs log tree commit diff
path: root/pkgs/tools/filesystems/httpdirfs/default.nix
blob: 1d4952edcbf9a794aabf4d63c534242c4c7b083b (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
  curl,
  expat,
  fetchFromGitHub,
  fuse,
  gumbo,
  lib,
  libuuid,
  pkg-config,
  stdenv,
}:

stdenv.mkDerivation rec {
  pname = "httpdirfs";
  version = "1.2.3";

  src = fetchFromGitHub {
    owner = "fangfufu";
    repo = pname;
    rev = "refs/tags/${version}";
    sha256 = "sha256-rdeBlAV3t/si9x488tirUGLZRYAxh13zdRIQe0OPd+A=";
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [
    curl
    expat
    fuse
    gumbo
    libuuid
  ];

  makeFlags = [ "prefix=${placeholder "out"}" ];

  meta = {
    description = "A FUSE filesystem for HTTP directory listings";
    homepage = "https://github.com/fangfufu/httpdirfs";
    license = lib.licenses.gpl3Only;
    mainProgram = "httpdirfs";
    maintainers = with lib.maintainers; [ sbruder schnusch ];
    platforms = lib.platforms.unix;
  };
}