biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / misc / wthrr / default.nix
blob5b3c6d2cd17ab2d9c1ac84c6ccbec37115879ada
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , pkg-config
5 , openssl
6 , stdenv
7 , darwin
8 }:
10 rustPlatform.buildRustPackage rec {
11   pname = "wthrr";
12   version = "1.1.1";
14   src = fetchFromGitHub {
15     owner = "tobealive";
16     repo = "wthrr-the-weathercrab";
17     rev = "v${version}";
18     hash = "sha256-djrPBmXnUC8d6lWuiHyYY2so8/5RHLFYDu6xoHn6GRg=";
19   };
21   cargoHash = "sha256-PGbkGoWcFlTKpnrvMzrHvjFLIuohqEhVg4DYhAZOpkw=";
23   nativeBuildInputs = [
24     pkg-config
25   ];
27   buildInputs = [
28     openssl
29   ] ++ lib.optionals stdenv.isDarwin [
30     darwin.apple_sdk.frameworks.CoreFoundation
31     darwin.apple_sdk.frameworks.Security
32   ];
34   checkFlags = [
35     # requires internet access
36     "--skip=modules::localization::tests::translate_string"
37     "--skip=modules::location::tests::geolocation_response"
38   ];
40   meta = with lib; {
41     description = "Weather companion for the terminal";
42     homepage = "https://github.com/tobealive/wthrr-the-weathercrab";
43     changelog = "https://github.com/tobealive/wthrr-the-weathercrab/releases/tag/${src.rev}";
44     license = licenses.mit;
45     maintainers = with maintainers; [ figsoda ];
46     mainProgram = "wthrr";
47   };