2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
2024-09-19 14:19:46 +00:00
|
|
|
, nixosTests
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "legit";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.2.3";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "legit";
|
|
|
|
owner = "icyphox";
|
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-C6PzZFYGjQs1BbYuEwcTpLQ3bNVb1rXTd0zXosF1kaE=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
vendorHash = "sha256-G4Wij0UCiXyVtb+66yU3FY2WbpPfqo0SA7OOcywnKU0=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) legit; };
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
meta = {
|
|
|
|
description = "Web frontend for git";
|
|
|
|
homepage = "https://github.com/icyphox/legit";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.ratsclub ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "legit";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|