Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / stork / default.nix
blob6a97654818121db55e0ccc04468dd7017a8ac236
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , openssl
5 , pkg-config
6 , stdenv
7 , Security
8 }:
10 rustPlatform.buildRustPackage rec {
11   pname = "stork";
12   version = "1.6.0";
14   src = fetchFromGitHub {
15     owner = "jameslittle230";
16     repo = "stork";
17     rev = "v${version}";
18     sha256 = "sha256-qGcEhoytkCkcaA5eHc8GVgWvbOIyrO6BCp+EHva6wTw=";
19   };
21   cargoSha256 = "sha256-a7ADTJ0VmKiZBr951JIAOSPWucsBl5JnM8eQHWssRM4=";
23   checkFlags = [
24     # Fails for 1.6.0, but binary works fine
25     "--skip=pretty_print_search_results::tests::display_pretty_search_results_given_output"
26   ];
28   nativeBuildInputs = [ pkg-config ];
30   buildInputs = [ openssl ]
31     ++ lib.optionals stdenv.isDarwin [ Security ];
33   meta = with lib; {
34     description = "Impossibly fast web search, made for static sites";
35     homepage = "https://github.com/jameslittle230/stork";
36     license = with licenses; [ asl20 ];
37     maintainers = with maintainers; [ chuahou ];
38   };