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
39 lines
830 B
Nix
39 lines
830 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "legit";
|
|
version = "0.2.4";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "legit";
|
|
owner = "icyphox";
|
|
rev = "v${version}";
|
|
hash = "sha256-2XeIAeneSKf8TSWOunvRJ7N+3IrmOUjS79ZubsGne9E=";
|
|
};
|
|
|
|
vendorHash = "sha256-4XplNx+Pyv6dn+ophBFxQ3lv3xAf1jP2DpLYX1RenvQ=";
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/lib/legit/templates
|
|
mkdir -p $out/lib/legit/static
|
|
|
|
cp -r $src/templates/* $out/lib/legit/templates
|
|
cp -r $src/static/* $out/lib/legit/static
|
|
'';
|
|
|
|
passthru.tests = { inherit (nixosTests) legit; };
|
|
|
|
meta = {
|
|
description = "Web frontend for git";
|
|
homepage = "https://github.com/icyphox/legit";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.ratsclub ];
|
|
mainProgram = "legit";
|
|
};
|
|
}
|