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";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.5.0";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jameslittle230";
|
|
|
|
repo = "stork";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-4aNY66y4dY+/MsZZGb5GBIlpZI+bAySff9+BEQUlx9M=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
cargoSha256 = "sha256-XyFZSQylBetf9tJLaV97oHbpe0aBadEZ60NyyxK8lfo=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|