stork: 1.3.0 -> 1.4.0

* stork: 1.3.0 -> 1.4.0 (#157416)

* stork: add Security framework and mark broken for x64 darwin build

- The Security framework is needed to build on Darwin.
- It currently fails on x86_64-darwin because the SDK is too old.
- For more details, see #157416.

authored by Chua Hou and committed by GitHub 157b6703 90cdc0cc

+10 -4
+10 -4
pkgs/applications/misc/stork/default.nix
··· 3 3 , fetchFromGitHub 4 4 , openssl 5 5 , pkg-config 6 + , stdenv 7 + , darwin 6 8 }: 7 9 8 10 rustPlatform.buildRustPackage rec { 9 11 pname = "stork"; 10 - version = "1.3.0"; 12 + version = "1.4.0"; 11 13 12 14 src = fetchFromGitHub { 13 15 owner = "jameslittle230"; 14 16 repo = "stork"; 15 17 rev = "v${version}"; 16 - sha256 = "sha256-or8PDEj97ChZq6r3WlwETYbU6EvoEuh8HfTyBIbbO8M="; 18 + sha256 = "sha256-9fylJcUuModemkBRnXeFfB1b+CD9IvTxW+CnlqaUb60="; 17 19 }; 18 20 19 - cargoSha256 = "sha256-UpIPbY2beO1H0YR9kV1SkG6C3qcO4x2acfgqI3x5jiM="; 21 + cargoSha256 = "sha256-j7OXl66xuTuP6hWJs+xHrwtaBGAYt02OESCN6FH3KX0="; 20 22 21 23 nativeBuildInputs = [ pkg-config ]; 22 24 23 - buildInputs = [ openssl ]; 25 + buildInputs = [ openssl ] 26 + ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; 24 27 25 28 meta = with lib; { 26 29 description = "Impossibly fast web search, made for static sites"; 27 30 homepage = "https://github.com/jameslittle230/stork"; 28 31 license = with licenses; [ asl20 ]; 29 32 maintainers = with maintainers; [ chuahou ]; 33 + # TODO: Remove once nixpkgs uses macOS SDK 10.14+ for x86_64-darwin 34 + # Undefined symbols for architecture x86_64: "_SecTrustEvaluateWithError" 35 + broken = stdenv.isDarwin && stdenv.isx86_64; 30 36 }; 31 37 }