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
38 lines
914 B
Nix
38 lines
914 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
withOpenCL ? true,
|
|
stdenv,
|
|
ocl-icd,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "lucky-commit";
|
|
version = "2.2.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "not-an-aardvark";
|
|
repo = "lucky-commit";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-pghc2lTI81/z1bPJ6P2bFPyZkM8pko0V7lqv9rUUxWM=";
|
|
};
|
|
|
|
cargoHash = "sha256-zuWPkaYltxOOLaR6NTVkf1WbKzUQByml45jNL+e5UJ0=";
|
|
|
|
buildInputs = lib.optional (withOpenCL && (!stdenv.hostPlatform.isDarwin)) ocl-icd;
|
|
|
|
buildNoDefaultFeatures = !withOpenCL;
|
|
|
|
# disable tests that require gpu
|
|
checkNoDefaultFeatures = true;
|
|
|
|
meta = with lib; {
|
|
description = "Change the start of your git commit hashes to whatever you want";
|
|
homepage = "https://github.com/not-an-aardvark/lucky-commit";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
mainProgram = "lucky_commit";
|
|
};
|
|
}
|