nixpkgs/pkgs/servers/soft-serve/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
958 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, makeWrapper, git }:
buildGoModule rec {
pname = "soft-serve";
2023-08-07 05:08:31 +00:00
version = "0.5.5";
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "soft-serve";
rev = "v${version}";
2023-08-07 05:08:31 +00:00
sha256 = "sha256-+jtB6OuoMSF3w5TfW2Q+LaP+8VKC1EpWU4mWZbBDNDM=";
};
2023-05-21 00:19:11 +00:00
vendorHash = "sha256-wf2Dfo4uWHg/h2+EfEW5oGUgqf1kAgiTq7ivczI1w+c=";
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";
2022-06-05 17:26:31 +00:00
changelog = "https://github.com/charmbracelet/soft-serve/releases/tag/v${version}";
mainProgram = "soft";
license = licenses.mit;
maintainers = with maintainers; [ penguwin ];
};
}