depot/third_party/nixpkgs/pkgs/tools/misc/starry/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

38 lines
766 B
Nix

{ lib
, rustPlatform
, fetchCrate
, pkg-config
, openssl
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "starry";
version = "2.0.2";
src = fetchCrate {
inherit pname version;
hash = "sha256-/ZUmMLEqlpqu+Ja/3XjFJf+OFZJCz7rp5MrQBEjwsXs=";
};
cargoHash = "sha256-L6s1LkWnjht2VLwq1GOFiIosnZjFN9tDSLpPtokmj9o=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
meta = with lib; {
description = "Current stars history tells only half the story";
homepage = "https://github.com/Canop/starry";
license = licenses.agpl3Only;
maintainers = with maintainers; [ figsoda ];
mainProgram = "starry";
};
}