mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
d994dabace
We do not use a "plugin system" for Git addons anymore, and therefore this directory is no longer useful. Indeed that directory is way more confusing, given that it includes more than mere Git addons, going from Bitbucket server command-line tools to complete rewrites of Git in exotic programming languages. Also, without this directory, the mental load of decision-making reduces a lot. When anyone is interested in including a new git-related tool, just put it into pkgs/applications/version-management, without apologies.
38 lines
909 B
Nix
38 lines
909 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, withOpenCL ? true
|
|
, stdenv
|
|
, OpenCL
|
|
, ocl-icd
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "lucky-commit";
|
|
version = "2.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "not-an-aardvark";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-0RSNlzmwat89ewQrjdGxLcXo01d+UaPZlteaxZCBRyE=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-8r/EGIiN+HTtChgLTdOS+Y7AdmjswqD4BZtYlL5UiEo=";
|
|
|
|
buildInputs = lib.optional withOpenCL (if stdenv.isDarwin then OpenCL else 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";
|
|
};
|
|
}
|