From d408a21736f685dec0426edd0bf12fbbd229b778 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 22 Aug 2021 14:48:44 +0200 Subject: [PATCH] httpdirfs: init at 1.2.2 --- default.nix | 2 ++ flake.nix | 1 + httpdirfs/default.nix | 26 ++++++++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 httpdirfs/default.nix diff --git a/default.nix b/default.nix index a221d3d..0dac80a 100644 --- a/default.nix +++ b/default.nix @@ -27,6 +27,8 @@ in gust_tools = callPackage ./gust_tools { }; + httpdirfs = callPackage ./httpdirfs { }; + mpvScripts = prev.mpvScripts // { pitchcontrol = callPackage ./mpv-scripts/pitchcontrol { }; }; diff --git a/flake.nix b/flake.nix index 0057eb8..ab3dfc5 100644 --- a/flake.nix +++ b/flake.nix @@ -40,6 +40,7 @@ fSpy face_morpher gust_tools + httpdirfs nsz oha playgsf diff --git a/httpdirfs/default.nix b/httpdirfs/default.nix new file mode 100644 index 0000000..eefde72 --- /dev/null +++ b/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.2"; + + src = fetchFromGitHub { + owner = "fangfufu"; + repo = pname; + rev = version; + sha256 = "sha256-IR+keGTEr1bPW6NIa7msH8DhwXrO6k1oGKdhe9Zl/pI="; + }; + + 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 ]; + platforms = platforms.unix; + }; +}