f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
34 lines
758 B
Nix
34 lines
758 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "legit";
|
|
version = "0.2.3";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "legit";
|
|
owner = "icyphox";
|
|
rev = "v${version}";
|
|
hash = "sha256-C6PzZFYGjQs1BbYuEwcTpLQ3bNVb1rXTd0zXosF1kaE=";
|
|
};
|
|
|
|
vendorHash = "sha256-G4Wij0UCiXyVtb+66yU3FY2WbpPfqo0SA7OOcywnKU0=";
|
|
|
|
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
|
|
'';
|
|
|
|
meta = {
|
|
description = "Web frontend for git";
|
|
homepage = "https://github.com/icyphox/legit";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.ratsclub ];
|
|
mainProgram = "legit";
|
|
};
|
|
}
|