dufs: init at 0.30.0

This commit is contained in:
Monson Shao 2022-09-15 15:38:26 +08:00
parent 467132e5ab
commit 664cfba168
No known key found for this signature in database
GPG Key ID: 163271C707982C65
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{ stdenv, lib, fetchFromGitHub, rustPlatform, Security, openssl, pkg-config }:
rustPlatform.buildRustPackage rec {
pname = "dufs";
version = "0.30.0";
src = fetchFromGitHub {
owner = "sigoden";
repo = pname;
rev = "v${version}";
sha256 = "sha256-UJ93yUJqxkP+PyUrhKkjV90vr55MemC1zRbzh/gFqPU=";
};
cargoSha256 = "sha256-dyn0wj11MC9NYwULsR6ytYUl+8wsRkVLBIwcgM5mMNQ=";
nativeBuildInputs = lib.optionals stdenv.isLinux [
pkg-config
];
buildInputs = lib.optionals stdenv.isLinux [
openssl
] ++ lib.optionals stdenv.isDarwin [
Security
];
meta = with lib; {
description = "A file server that supports static serving, uploading, searching, accessing control, webdav";
homepage = "https://github.com/sigoden/dufs";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = [ maintainers.holymonson ];
};
}

View File

@ -446,6 +446,10 @@ with pkgs;
dsq = callPackage ../tools/misc/dsq { };
dufs = callPackage ../servers/http/dufs {
inherit (darwin.apple_sdk.frameworks) Security;
};
each = callPackage ../tools/text/each { };
eclipse-mat = callPackage ../development/tools/eclipse-mat { };