1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00
nixpkgs/pkgs/servers/http/dave/default.nix
2023-01-27 01:45:35 +00:00

35 lines
963 B
Nix

{ lib, buildGoModule, fetchFromGitHub, mage }:
buildGoModule rec {
pname = "dave";
version = "0.4.0";
src = fetchFromGitHub {
owner = "micromata";
repo = "dave";
rev = "v${version}";
hash = "sha256-wvsW4EwMWAgEV+LPeMhHL4AsuyS5TDMmpD9D4F1nVM4=";
};
deleteVendor = true;
vendorHash = "sha256-iyq2DGdbdfJIRNkGAIKTk1LLDydpVX3juQFaG6H5vJQ=";
patches = [
# Add Go Modules support:
# - Based on https://github.com/micromata/dave/commit/46ae146dd2e95d57be35fa01885ea2c55fd8c279.
# - Bump golang.org/x/sys for Darwin.
./go-modules.patch
];
subPackages = [ "cmd/dave" "cmd/davecli" ];
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.builtBy=nixpkgs" ];
meta = with lib; {
homepage = "https://github.com/micromata/dave";
description = "A totally simple and very easy to configure stand alone webdav server";
license = licenses.asl20;
maintainers = with maintainers; [ lunik1 ];
};
}