nixpkgs/pkgs/tools/misc/starry/default.nix

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

39 lines
766 B
Nix
Raw Normal View History

{ lib
, rustPlatform
, fetchCrate
, pkg-config
, openssl
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "starry";
2023-10-03 04:29:39 +02:00
version = "2.0.2";
src = fetchCrate {
inherit pname version;
2023-10-03 04:29:39 +02:00
hash = "sha256-/ZUmMLEqlpqu+Ja/3XjFJf+OFZJCz7rp5MrQBEjwsXs=";
};
2023-10-03 04:29:39 +02:00
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";
};
}