mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromCodeberg,
|
|
pkg-config,
|
|
libgit2,
|
|
nix-update-script,
|
|
zlib,
|
|
stdenv,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "gex";
|
|
version = "0.6.7";
|
|
|
|
src = fetchFromCodeberg {
|
|
owner = "Piturnah";
|
|
repo = "gex";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-L8AHJ7h2lNx04nJ//2DjH3CdnuQGMqcta0+XzJjRNb4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
buildInputs = [
|
|
libgit2
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ zlib ];
|
|
|
|
env = {
|
|
LIBGIT2_NO_VENDOR = 1;
|
|
};
|
|
|
|
cargoHash = "sha256-FdxBYDgDxpZqqYzjX+lWP+uP2jUD3Y5Rzyx+JasAgIY=";
|
|
|
|
meta = {
|
|
description = "Git Explorer: cross-platform git workflow improvement tool inspired by Magit";
|
|
homepage = "https://codeberg.org/Piturnah/gex";
|
|
changelog = "https://codeberg.org/Piturnah/gex/releases/tag/${finalAttrs.src.tag}";
|
|
license = with lib.licenses; [
|
|
asl20 # or
|
|
mit
|
|
];
|
|
maintainers = with lib.maintainers; [
|
|
azd325
|
|
bot-wxt1221
|
|
evanrichter
|
|
piturnah
|
|
];
|
|
mainProgram = "gex";
|
|
};
|
|
})
|