1 { lib, buildGoModule, fetchFromGitHub, mage }:
7 src = fetchFromGitHub {
11 hash = "sha256-wvsW4EwMWAgEV+LPeMhHL4AsuyS5TDMmpD9D4F1nVM4=";
15 vendorHash = "sha256-iyq2DGdbdfJIRNkGAIKTk1LLDydpVX3juQFaG6H5vJQ=";
18 # Add Go Modules support:
19 # - Based on https://github.com/micromata/dave/commit/46ae146dd2e95d57be35fa01885ea2c55fd8c279.
20 # - Bump golang.org/x/sys for Darwin.
24 subPackages = [ "cmd/dave" "cmd/davecli" ];
26 ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.builtBy=nixpkgs" ];
29 homepage = "https://github.com/micromata/dave";
30 description = "Totally simple and very easy to configure stand alone webdav server";
31 license = licenses.asl20;
32 maintainers = with maintainers; [ lunik1 ];