2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2021-04-25 03:57:28 +00:00
|
|
|
, openssl
|
|
|
|
, pkg-config
|
2022-02-20 05:27:41 +00:00
|
|
|
, stdenv
|
2022-12-28 21:21:41 +00:00
|
|
|
, Security
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "stork";
|
2023-02-09 11:40:11 +00:00
|
|
|
version = "1.6.0";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jameslittle230";
|
|
|
|
repo = "stork";
|
|
|
|
rev = "v${version}";
|
2023-02-09 11:40:11 +00:00
|
|
|
sha256 = "sha256-qGcEhoytkCkcaA5eHc8GVgWvbOIyrO6BCp+EHva6wTw=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +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-25 03:57:28 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
buildInputs = [ openssl ]
|
2022-12-28 21:21:41 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [ Security ];
|
2021-03-09 03:18:52 +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 ];
|
|
|
|
};
|
|
|
|
}
|