soft-serve: init at 0.1.0

Apply suggestions from code review

Co-authored-by: legendofmiracles <30902201+legendofmiracles@users.noreply.github.com>
This commit is contained in:
Nicolas M 2021-12-07 11:01:26 +01:00 committed by Profpatsch
parent b79db91640
commit 68dc74333e
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, git }:
buildGoModule rec {
pname = "soft-serve";
version = "0.1.0";
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "soft-serve";
rev = "v${version}";
sha256 = "0z88699q34a9cbhcz12y2qs2qrspfd8yx4ay0r8jzvkgax9ylrlk";
};
vendorSha256 = "1g2iznfh08l23i81x7g2bhc7l8cppshzlyynxik4jshswlpv80sr";
doCheck = false;
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/soft \
--prefix PATH : "${lib.makeBinPath [ git ]}"
'';
meta = with lib; {
description = "A tasty, self-hosted Git server for the command line";
homepage = "https://github.com/charmbracelet/soft-serve";
license = licenses.mit;
maintainers = with maintainers; [ penguwin ];
};
}

View File

@ -21129,6 +21129,8 @@ with pkgs;
quark = callPackage ../servers/http/quark { };
soft-serve = callPackage ../servers/soft-serve { };
sympa = callPackage ../servers/mail/sympa { };
system-sendmail = lowPrio (callPackage ../servers/mail/system-sendmail { });