2022-10-09 23:02:21 +02:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
2023-12-23 13:58:00 +01:00
|
|
|
, darwin
|
2022-10-09 23:02:21 +02:00
|
|
|
, fetchCrate
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "star-history";
|
2024-03-27 22:20:19 +01:00
|
|
|
version = "1.0.21";
|
2022-10-09 23:02:21 +02:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-03-27 22:20:19 +01:00
|
|
|
sha256 = "sha256-jBeV5iZUKE70n/GTV+Bu9dy7B4pPmPhi5LHqw+YXJE0=";
|
2022-10-09 23:02:21 +02:00
|
|
|
};
|
|
|
|
|
2024-03-27 22:20:19 +01:00
|
|
|
cargoHash = "sha256-oHAHYNJZuD8j/VLmCwcLxv9FkfZdXnxI8cQsJ8sFmZA=";
|
2022-10-09 23:02:21 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
|
2023-12-23 13:58:00 +01:00
|
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
2022-10-09 23:02:21 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Command line program to generate a graph showing number of GitHub stars of a user, org or repo over time";
|
|
|
|
homepage = "https://github.com/dtolnay/star-history";
|
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "star-history";
|
2022-10-09 23:02:21 +02:00
|
|
|
};
|
|
|
|
}
|