diff options
author | Victor Freire <victor@freire.dev.br> | 2023-05-24 09:47:12 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-05-27 16:20:05 +0000 |
commit | 3e5995d7eadf679331e46c5902d2f57249ee6780 (patch) | |
tree | ffcb198ed4e1a48fbf21a9051d24513a2c3e16ea /pkgs/applications/version-management/legit-web | |
parent | 4877a270df71049535d2b9bef112ade6d60d15bd (diff) |
legit: init at 0.2.1
Diffstat (limited to 'pkgs/applications/version-management/legit-web')
-rw-r--r-- | pkgs/applications/version-management/legit-web/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/legit-web/default.nix b/pkgs/applications/version-management/legit-web/default.nix new file mode 100644 index 0000000000000..72de9d90c3e82 --- /dev/null +++ b/pkgs/applications/version-management/legit-web/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "legit"; + version = "0.2.1"; + + src = fetchFromGitHub { + repo = "legit"; + owner = "icyphox"; + rev = "v${version}"; + hash = "sha256-Y0lfbe4xBCj80z07mLFIiX+shvntYAHiW2Uw7h94jrE="; + }; + + vendorHash = "sha256-RAUSYCtP4rcJ2zIBXfPAEZWD1VSfr3d4MrmUMiPpjK8="; + + 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 ]; + }; +} |