nixpkgs/pkgs/by-name/gi/git-igitt/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.1 KiB
Nix
Raw Normal View History

2024-07-28 13:26:48 +00:00
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
libgit2,
oniguruma,
zlib,
2024-09-06 23:37:40 +00:00
stdenv,
darwin,
2024-08-02 23:21:22 +00:00
nix-update-script,
2024-07-28 13:26:48 +00:00
}:
let
pname = "git-igitt";
version = "0.1.18";
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "mlange-42";
repo = pname;
rev = version;
hash = "sha256-JXEWnekL9Mtw0S3rI5aeO1HB9kJ7bRJDJ6EJ4ATlFeQ=";
};
cargoHash = "sha256-5UgcgM/WuyApNFCd8YBodx9crJP3+Bygu9nSBJqPCaQ=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libgit2
oniguruma
zlib
2024-09-06 23:37:40 +00:00
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];
2024-07-28 13:26:48 +00:00
env = {
RUSTONIG_SYSTEM_LIBONIG = true;
};
2024-08-02 23:21:22 +00:00
passthru.updateScript = nix-update-script { };
2024-07-28 13:26:48 +00:00
meta = {
description = "Interactive, cross-platform Git terminal application with clear git graphs arranged for your branching model";
homepage = "https://github.com/mlange-42/git-igitt";
license = lib.licenses.mit;
sourceProvenance = [ lib.sourceTypes.fromSource ];
2024-07-28 13:26:48 +00:00
maintainers = [ lib.maintainers.pinage404 ];
mainProgram = "git-igitt";
};
}