add xcaddy package

This commit is contained in:
The Hedgehog 2022-07-28 17:50:36 -04:00
parent c1db2bc786
commit 2b0f936d8d
No known key found for this signature in database
2 changed files with 25 additions and 0 deletions

View file

@ -90,6 +90,7 @@
lib = nixpkgs.lib;
in {
packages.${system} = {
"xcaddy" = pkgs.callPackage ./pkgs/xcaddy.nix {};
"nerdfont-symbols" = pkgs.callPackage ./pkgs/nerdfont-symbols.nix {};
"sway-launcher-desktop" = pkgs.callPackage ./pkgs/sway-launcher-desktop.nix {};
"taskwarrior-tui" = pkgs.callPackage ./pkgs/taskwarrior-tui.nix {};

24
pkgs/xcaddy.nix Normal file
View file

@ -0,0 +1,24 @@
{ lib, pkgs, fetchFromGitHub, buildGoModule, stdenv, ...}:
buildGoModule rec {
pname = "xcaddy";
version = "0.3.0";
proxyVendor = true;
subPackages = ["cmd/xcaddy"];
src = fetchFromGitHub {
owner = "caddyserver";
repo = "xcaddy";
rev = "v${version}";
sha256 = "sha256-kB2WyHaln/arvISzVjcgPLHIUC/dCzL9Ub8aEl2xL2c=";
};
vendorSha256 = "sha256-6ZAMRe9MsCuShXCIKEYtItqLM8bKlIf0m70RsNYPG10=";
meta = with lib; {
homepage = "https://caddyserver.com";
description = "Caddy build tool";
license = licenses.asl20;
maintainers = with maintainers; [ thehedgeh0g ];
};
}