depot/third_party/nixpkgs/pkgs/by-name/ht/httpdirfs/package.nix

65 lines
1.2 KiB
Nix

{
curl,
expat,
fetchFromGitHub,
fuse3,
gumbo,
help2man,
lib,
libuuid,
meson,
ninja,
nix-update-script,
pkg-config,
stdenv,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "httpdirfs";
version = "1.2.7";
src = fetchFromGitHub {
owner = "fangfufu";
repo = "httpdirfs";
rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-6TGptKWX0hSNL3Z3ioP7puzozWLiMhCybN7hATQdD/k=";
};
nativeBuildInputs = [
help2man
meson
ninja
pkg-config
];
buildInputs = [
curl
expat
fuse3
gumbo
libuuid
];
passthru = {
tests.version = testers.testVersion {
command = "${lib.getExe finalAttrs.finalPackage} --version";
package = finalAttrs.finalPackage;
};
updateScript = nix-update-script { };
};
meta = {
changelog = "https://github.com/fangfufu/httpdirfs/releases/tag/${finalAttrs.version}";
description = "FUSE filesystem for HTTP directory listings";
homepage = "https://github.com/fangfufu/httpdirfs";
license = lib.licenses.gpl3Only;
mainProgram = "httpdirfs";
maintainers = with lib.maintainers; [
sbruder
schnusch
anthonyroussel
];
platforms = lib.platforms.linux;
};
})