From b65cd9bb4df254b62fb7a97d175f1a5792505c11 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sat, 30 Mar 2024 16:36:11 +0100 Subject: [PATCH] httpdirfs: format with nixfmt-rfc-style --- pkgs/tools/filesystems/httpdirfs/default.nix | 31 +++++++++++++++----- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/filesystems/httpdirfs/default.nix b/pkgs/tools/filesystems/httpdirfs/default.nix index 6163e1a0158a..1d4952edcbf9 100644 --- a/pkgs/tools/filesystems/httpdirfs/default.nix +++ b/pkgs/tools/filesystems/httpdirfs/default.nix @@ -1,4 +1,14 @@ -{ lib, stdenv, fetchFromGitHub, pkg-config, curl, expat, fuse, gumbo, libuuid }: +{ + curl, + expat, + fetchFromGitHub, + fuse, + gumbo, + lib, + libuuid, + pkg-config, + stdenv, +}: stdenv.mkDerivation rec { pname = "httpdirfs"; @@ -7,21 +17,28 @@ stdenv.mkDerivation rec { src = fetchFromGitHub { owner = "fangfufu"; repo = pname; - rev = version; + rev = "refs/tags/${version}"; sha256 = "sha256-rdeBlAV3t/si9x488tirUGLZRYAxh13zdRIQe0OPd+A="; }; nativeBuildInputs = [ pkg-config ]; - buildInputs = [ curl expat fuse gumbo libuuid ]; + + buildInputs = [ + curl + expat + fuse + gumbo + libuuid + ]; makeFlags = [ "prefix=${placeholder "out"}" ]; - meta = with lib; { + meta = { 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; + license = lib.licenses.gpl3Only; mainProgram = "httpdirfs"; + maintainers = with lib.maintainers; [ sbruder schnusch ]; + platforms = lib.platforms.unix; }; }