figsoda 2023-08-14 19:44:04 -04:00
parent b20308c508
commit dd2ba7159e
2 changed files with 15 additions and 9 deletions

View file

@ -1,17 +1,24 @@
{ stdenv, lib, fetchFromGitHub, rustPlatform, Security, openssl, pkg-config }:
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, pkg-config
, openssl
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "dufs";
version = "0.34.2";
version = "0.35.0";
src = fetchFromGitHub {
owner = "sigoden";
repo = pname;
rev = "v${version}";
sha256 = "sha256-NkH7w5HEQFhnovUmjN/qW5QZwO8mVQZMbhpNFkKtLTI=";
sha256 = "sha256-FrLvwXEnNEKi8FvPIs6A52WpSUT+pUCc61JBi9M/PPw=";
};
cargoHash = "sha256-bUznaVyhZswLaXUgC+GUh5ZpJQW7Vkcoui6CO9ds22g=";
cargoHash = "sha256-YHFEjs8a1QJHWYVjAQxmpMIQ2aDbu6mxeuNqcvReYR0=";
nativeBuildInputs = lib.optionals stdenv.isLinux [
pkg-config
@ -20,7 +27,7 @@ rustPlatform.buildRustPackage rec {
buildInputs = lib.optionals stdenv.isLinux [
openssl
] ++ lib.optionals stdenv.isDarwin [
Security
darwin.apple_sdk.frameworks.Security
];
# FIXME: checkPhase on darwin will leave some zombie spawn processes
@ -34,7 +41,8 @@ rustPlatform.buildRustPackage rec {
meta = with lib; {
description = "A file server that supports static serving, uploading, searching, accessing control, webdav";
homepage = "https://github.com/sigoden/dufs";
changelog = "https://github.com/sigoden/dufs/blob/${src.rev}/CHANGELOG.md";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = [ maintainers.holymonson ];
maintainers = with maintainers; [ figsoda holymonson ];
};
}

View file

@ -595,9 +595,7 @@ with pkgs;
dtv-scan-tables = callPackage ../data/misc/dtv-scan-tables { };
dufs = callPackage ../servers/http/dufs {
inherit (darwin.apple_sdk.frameworks) Security;
};
dufs = callPackage ../servers/http/dufs { };
dynein = callPackage ../development/tools/database/dynein {
inherit (darwin.apple_sdk.frameworks) Security;