git-identity: init at 1.1.1
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
a9c0a2e2a1
commit
98722542d9
52
pkgs/by-name/gi/git-identity/package.nix
Normal file
52
pkgs/by-name/gi/git-identity/package.nix
Normal file
@ -0,0 +1,52 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
installShellFiles,
|
||||
ronn,
|
||||
nix-update-script,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "git-identity";
|
||||
version = "1.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "madx";
|
||||
repo = "git-identity";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-u4lIW0bntaKrVUwodXZ8ZwWxSZtLuhVSUAbIj8jjcLw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
ronn
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
ronn --roff git-identity.1.ronn
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/bin
|
||||
cp git-identity $out/bin/git-identity
|
||||
installManPage git-identity.1
|
||||
installShellCompletion --cmd git-identity \
|
||||
--bash git-identity.bash-completion \
|
||||
--zsh git-identity.zsh-completion
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Manage your identity in Git";
|
||||
mainProgram = "git-identity";
|
||||
homepage = "https://github.com/madx/git-identity";
|
||||
license = lib.licenses.wtfpl;
|
||||
maintainers = with lib.maintainers; [ mynacol ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user