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-09-19 14:19:46 +00:00
|
|
|
version = "0.6.0";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "convco";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-TRuzHcGnvxDMd/XtbSXj4P+72ZL86Z2FgsqmYrKg/Ys=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-mT1bwCp/MdYbyc9IrC9WDmKfD6lfiqVL7TlenddTXt8=";
|
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
|
|
|
};
|
|
|
|
}
|