stork: modernize
This commit is contained in:
@@ -6,17 +6,18 @@
|
||||
pkg-config,
|
||||
stdenv,
|
||||
Security,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "stork";
|
||||
version = "1.6.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jameslittle230";
|
||||
repo = "stork";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-qGcEhoytkCkcaA5eHc8GVgWvbOIyrO6BCp+EHva6wTw=";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-qGcEhoytkCkcaA5eHc8GVgWvbOIyrO6BCp+EHva6wTw=";
|
||||
};
|
||||
|
||||
useFetchCargoVendor = true;
|
||||
@@ -31,11 +32,13 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
|
||||
|
||||
meta = with lib; {
|
||||
nativeCheckInputs = [ versionCheckHook ];
|
||||
|
||||
meta = {
|
||||
description = "Impossibly fast web search, made for static sites";
|
||||
homepage = "https://github.com/jameslittle230/stork";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ chuahou ];
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ chuahou ];
|
||||
mainProgram = "stork";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user