Files
nixpkgs/pkgs/by-name/ge/gex/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

60 lines
1.2 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitea,
pkg-config,
libgit2,
nix-update-script,
zlib,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "gex";
version = "0.6.4";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "Piturnah";
repo = "gex";
tag = "v${version}";
hash = "sha256-Xer7a3UtFIv3idchI7DfZ5u6qgDW/XFWi5ihtcREXqo=";
};
nativeBuildInputs = [ pkg-config ];
passthru.updateScript = nix-update-script { };
buildInputs = [
libgit2
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ zlib ];
env = {
LIBGIT2_NO_VENDOR = 1;
};
cargoPatches = [
./patch-libgit2.patch
];
cargoHash = "sha256-4ejtMCuJOwT5bJQZaPQ1OjrB5O70we77yEXk9RmhywE=";
meta = with lib; {
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/${src.tag}";
license = with licenses; [
asl20 # or
mit
];
maintainers = with maintainers; [
azd325
bot-wxt1221
evanrichter
piturnah
];
mainProgram = "gex";
};
}