1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

legit: init at 0.2.1

This commit is contained in:
Victor Freire 2023-05-24 09:47:12 -03:00 committed by Anderson Torres
parent 4877a270df
commit 3e5995d7ea
2 changed files with 35 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -2152,6 +2152,8 @@ with pkgs;
legit = callPackage ../applications/version-management/legit { };
legit-web = callPackage ../applications/version-management/legit-web { };
lucky-commit = callPackage ../applications/version-management/lucky-commit {
inherit (darwin.apple_sdk.frameworks) OpenCL;
};