sqlpage: darwin sdk refactor (#354086)

This commit is contained in:
Weijia Wang
2024-11-07 03:53:12 +01:00
committed by GitHub
+13 -20
View File
@@ -1,12 +1,11 @@
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, sqlite
, zstd
, stdenv
, darwin
, fetchurl
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
sqlite,
zstd,
fetchurl,
}:
let
@@ -73,7 +72,7 @@ rustPlatform.buildRustPackage rec {
substituteInPlace sqlpage/tomselect.js \
--replace-fail '/* !include https://cdn.jsdelivr.net/npm/tom-select@2.3.1/dist/js/tom-select.popular.min.js */' \
"$(cat ${tomselect})"
'';
'';
cargoHash = "sha256-/B8tayEbyOsc0/po1YQKtp694X12B3I50OU4cMwJo8Q=";
@@ -81,16 +80,10 @@ rustPlatform.buildRustPackage rec {
pkg-config
];
buildInputs =
[
sqlite
zstd
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.CoreFoundation
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];
buildInputs = [
sqlite
zstd
];
env = {
ZSTD_SYS_USE_PKG_CONFIG = true;