2021-03-04 03:56:32 +01:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2021-04-22 05:18:59 +02:00
|
|
|
, openssl
|
|
|
|
, pkg-config
|
2021-03-04 03:56:32 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "stork";
|
2021-05-13 08:58:37 +02:00
|
|
|
version = "1.2.1";
|
2021-03-04 03:56:32 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jameslittle230";
|
|
|
|
repo = "stork";
|
|
|
|
rev = "v${version}";
|
2021-05-13 08:58:37 +02:00
|
|
|
sha256 = "sha256-rox8X+lYiiCXO66JemW+R2I6y/IxdK6qpaiFXYoL6nY=";
|
2021-03-04 03:56:32 +01:00
|
|
|
};
|
|
|
|
|
2021-05-13 08:58:37 +02:00
|
|
|
cargoSha256 = "sha256-ujmBAld6DCc1l+yUu9qhRF8pS5HoIlstcdPTeTAyyXs=";
|
2021-04-22 05:18:59 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ openssl ];
|
2021-03-04 03:56:32 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|