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
53 lines
1.0 KiB
Nix
53 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
pkg-config,
|
|
libgit2,
|
|
openssl,
|
|
zlib,
|
|
}:
|
|
|
|
let
|
|
version = "5.14.4";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
pname = "git-mit";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PurpleBooth";
|
|
repo = "git-mit";
|
|
rev = "v${version}";
|
|
hash = "sha256-8XWwzR9TiSCU6fKbrulKpCDFDEyzQpaT2nrahF8iac8=";
|
|
};
|
|
|
|
cargoPatches = [
|
|
# https://github.com/PurpleBooth/git-mit/pull/1543
|
|
./libgit2-update.patch
|
|
];
|
|
|
|
cargoHash = "sha256-B2XRdcwcFxMwnDl5ndIw72OEsn6D2Y8rIoeO4tclJkk=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
libgit2
|
|
openssl
|
|
zlib
|
|
];
|
|
|
|
env = {
|
|
LIBGIT2_NO_VENDOR = 1;
|
|
};
|
|
|
|
meta = {
|
|
description = "Minimalist set of hooks to aid pairing and link commits to issues";
|
|
homepage = "https://github.com/PurpleBooth/git-mit";
|
|
changelog = "https://github.com/PurpleBooth/git-mit/releases/tag/v${version}";
|
|
license = lib.licenses.cc0;
|
|
maintainers = with lib.maintainers; [ figsoda ];
|
|
};
|
|
}
|