nixpkgs/pkgs/tools/misc/star-history/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
794 B
Nix
Raw Normal View History

2022-10-09 21:02:21 +00:00
{ lib
, rustPlatform
, fetchCrate
, pkg-config
, openssl
, stdenv
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "star-history";
2022-10-30 17:53:05 +00:00
version = "1.0.5";
2022-10-09 21:02:21 +00:00
src = fetchCrate {
inherit pname version;
2022-10-30 17:53:05 +00:00
sha256 = "sha256-fmuCmyqw7wubMafkhqL1MltW6jZefgXdnudxdeBRSV4=";
2022-10-09 21:02:21 +00:00
};
2022-10-30 17:53:05 +00:00
cargoSha256 = "sha256-+wHOBjBQyMuooDey4Py8xmgW3NNI8t8rCwA8A7D6L84=";
2022-10-09 21:02:21 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
Security
];
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 ];
};
}