Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
nixosTests,
|
|
git,
|
|
bash,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "soft-serve";
|
|
version = "0.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "charmbracelet";
|
|
repo = "soft-serve";
|
|
rev = "v${version}";
|
|
hash = "sha256-Lg7cESGMbVCNx0KQBIAP/UsfvO3IO+DO9bYiQbg9Fls=";
|
|
};
|
|
|
|
vendorHash = "sha256-DBgVcbt2kejtEJSajJh6vS4feT3Lwm+KqUOks55iWIc=";
|
|
|
|
doCheck = false;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=main.Version=${version}"
|
|
];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
# Soft-serve generates git-hooks at run-time.
|
|
# The scripts require git and bash inside the path.
|
|
wrapProgram $out/bin/soft \
|
|
--prefix PATH : "${
|
|
lib.makeBinPath [
|
|
git
|
|
bash
|
|
]
|
|
}"
|
|
'';
|
|
|
|
passthru.tests = nixosTests.soft-serve;
|
|
|
|
meta = {
|
|
description = "Tasty, self-hosted Git server for the command line";
|
|
homepage = "https://github.com/charmbracelet/soft-serve";
|
|
changelog = "https://github.com/charmbracelet/soft-serve/releases/tag/v${version}";
|
|
mainProgram = "soft";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ penguwin ];
|
|
};
|
|
}
|