3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/stork/default.nix

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

38 lines
1,000 B
Nix
Raw Normal View History

2021-03-04 02:56:32 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
2021-04-22 04:18:59 +01:00
, openssl
, pkg-config
, stdenv
, darwin
2021-03-04 02:56:32 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "stork";
2022-03-13 21:44:11 +00:00
version = "1.4.1";
2021-03-04 02:56:32 +00:00
src = fetchFromGitHub {
owner = "jameslittle230";
repo = "stork";
rev = "v${version}";
2022-03-13 21:44:11 +00:00
sha256 = "sha256-aBsxRLUufVUauySCxZKk/ZfcU/5KR7jOHmnx6mHmsFs=";
2021-03-04 02:56:32 +00:00
};
2022-03-13 21:44:11 +00:00
cargoSha256 = "sha256-oNoWGdXYfp47IpqU1twbORPOYrHjArNf43Zyeyat4Xs=";
2021-04-22 04:18:59 +01:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
2021-03-04 02:56:32 +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 ];
# TODO: Remove once nixpkgs uses macOS SDK 10.14+ for x86_64-darwin
# Undefined symbols for architecture x86_64: "_SecTrustEvaluateWithError"
broken = stdenv.isDarwin && stdenv.isx86_64;
2021-03-04 02:56:32 +00:00
};
}