2021-10-07 14:46:35 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
2022-11-21 17:40:18 +00:00
|
|
|
, libgit2
|
2021-10-07 14:46:35 +00:00
|
|
|
, openssl
|
|
|
|
, stdenv
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "eureka-ideas";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.0.0";
|
2021-10-07 14:46:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "simeg";
|
|
|
|
repo = "eureka";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-NJ1O8+NBG0y39bMOZeah2jSZlvnPrtpCtXrgAYmVrAc=";
|
2021-10-07 14:46:35 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
cargoSha256 = "sha256-tNUWW0HgXl+tM9uciApLSkLDDkzrvAiWmiYs2y/dEOM=";
|
2021-10-07 14:46:35 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
buildInputs = [
|
|
|
|
libgit2
|
|
|
|
openssl
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
Security
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
dontUseCargoParallelTests = true;
|
|
|
|
|
2021-10-07 14:46:35 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "CLI tool to input and store your ideas without leaving the terminal";
|
|
|
|
homepage = "https://github.com/simeg/eureka";
|
|
|
|
changelog = "https://github.com/simeg/eureka/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
mainProgram = "eureka";
|
|
|
|
};
|
|
|
|
}
|