2021-03-04 02:56:32 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2021-04-22 03:18:59 +00:00
|
|
|
, openssl
|
|
|
|
, pkg-config
|
2022-02-19 23:35:27 +00:00
|
|
|
, stdenv
|
2022-12-22 20:06:40 +00:00
|
|
|
, Security
|
2021-03-04 02:56:32 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "stork";
|
2023-02-03 21:56:14 +00:00
|
|
|
version = "1.6.0";
|
2021-03-04 02:56:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jameslittle230";
|
|
|
|
repo = "stork";
|
|
|
|
rev = "v${version}";
|
2023-02-03 21:56:14 +00:00
|
|
|
sha256 = "sha256-qGcEhoytkCkcaA5eHc8GVgWvbOIyrO6BCp+EHva6wTw=";
|
2021-03-04 02:56:32 +00:00
|
|
|
};
|
|
|
|
|
2023-02-03 21:56:14 +00:00
|
|
|
cargoSha256 = "sha256-a7ADTJ0VmKiZBr951JIAOSPWucsBl5JnM8eQHWssRM4=";
|
|
|
|
|
|
|
|
checkFlags = [
|
|
|
|
# Fails for 1.6.0, but binary works fine
|
|
|
|
"--skip=pretty_print_search_results::tests::display_pretty_search_results_given_output"
|
|
|
|
];
|
2021-04-22 03:18:59 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2022-02-19 23:35:27 +00:00
|
|
|
buildInputs = [ openssl ]
|
2022-12-22 20:06:40 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [ Security ];
|
2021-03-04 02:56:32 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Impossibly fast web search, made for static sites";
|
|
|
|
homepage = "https://github.com/jameslittle230/stork";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ chuahou ];
|
|
|
|
};
|
|
|
|
}
|