nixpkgs/pkgs/applications/misc/stork/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
935 B
Nix
Raw Normal View History

2021-03-04 03:56:32 +01:00
{ lib
, rustPlatform
, fetchFromGitHub
2021-04-22 05:18:59 +02:00
, openssl
, pkg-config
, stdenv
2022-12-22 21:06:40 +01:00
, Security
2021-03-04 03:56:32 +01:00
}:
rustPlatform.buildRustPackage rec {
pname = "stork";
2023-02-03 22:56:14 +01:00
version = "1.6.0";
2021-03-04 03:56:32 +01:00
src = fetchFromGitHub {
owner = "jameslittle230";
repo = "stork";
rev = "v${version}";
2023-02-03 22:56:14 +01:00
sha256 = "sha256-qGcEhoytkCkcaA5eHc8GVgWvbOIyrO6BCp+EHva6wTw=";
2021-03-04 03:56:32 +01:00
};
2023-02-03 22:56:14 +01: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 05:18:59 +02:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ]
2022-12-22 21:06:40 +01:00
++ lib.optionals stdenv.isDarwin [ Security ];
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 ];
};
}