10 rustPlatform.buildRustPackage rec {
11 pname = "lucky-commit";
14 src = fetchFromGitHub {
15 owner = "not-an-aardvark";
18 sha256 = "sha256-jxcsTtQcSuL+2vwdxIVxqTpKh8Bfvna+hkGt+Rx21FE=";
21 cargoHash = "sha256-8JkodGtMdYP/IIBqRcJFD5syiZi+VakDyX7VcvR0HLo=";
23 buildInputs = lib.optional withOpenCL (if stdenv.hostPlatform.isDarwin then OpenCL else ocl-icd);
25 buildNoDefaultFeatures = !withOpenCL;
27 # disable tests that require gpu
28 checkNoDefaultFeatures = true;
31 description = "Change the start of your git commit hashes to whatever you want";
32 homepage = "https://github.com/not-an-aardvark/lucky-commit";
33 license = licenses.mit;
34 maintainers = with maintainers; [ figsoda ];
35 mainProgram = "lucky_commit";