2022-02-10 20:34:41 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, libiconv
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
2023-10-09 19:29:22 +00:00
|
|
|
, darwin
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "convco";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.5.2";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "convco";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-S5k0d29tuR0VkJrqCiWg1v+W2n9TrQCfMOInII4jxg0=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
cargoHash = "sha256-cYb3syf+k4V0pCpekQ2tY73Gl6rDc9YMCXs3TKRtgpo=";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Conventional commit cli";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "convco";
|
2021-02-05 17:12:51 +00:00
|
|
|
homepage = "https://github.com/convco/convco";
|
|
|
|
license = with licenses; [ mit ];
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ hoverbear cafkafk ];
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
}
|