Skip to content

Commit f8619f3

Browse files
authored
sqlpage: darwin sdk refactor (#354086)
2 parents 9f737b7 + e1ad199 commit f8619f3

File tree

1 file changed

+13
-20
lines changed

1 file changed

+13
-20
lines changed

pkgs/servers/sqlpage/default.nix

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
{ lib
2-
, rustPlatform
3-
, fetchFromGitHub
4-
, pkg-config
5-
, sqlite
6-
, zstd
7-
, stdenv
8-
, darwin
9-
, fetchurl
1+
{
2+
lib,
3+
rustPlatform,
4+
fetchFromGitHub,
5+
pkg-config,
6+
sqlite,
7+
zstd,
8+
fetchurl,
109
}:
1110

1211
let
@@ -73,24 +72,18 @@ rustPlatform.buildRustPackage rec {
7372
substituteInPlace sqlpage/tomselect.js \
7473
--replace-fail '/* !include https://cdn.jsdelivr.net/npm/[email protected]/dist/js/tom-select.popular.min.js */' \
7574
"$(cat ${tomselect})"
76-
'';
75+
'';
7776

7877
cargoHash = "sha256-/B8tayEbyOsc0/po1YQKtp694X12B3I50OU4cMwJo8Q=";
7978

8079
nativeBuildInputs = [
8180
pkg-config
8281
];
8382

84-
buildInputs =
85-
[
86-
sqlite
87-
zstd
88-
]
89-
++ lib.optionals stdenv.hostPlatform.isDarwin [
90-
darwin.apple_sdk.frameworks.CoreFoundation
91-
darwin.apple_sdk.frameworks.Security
92-
darwin.apple_sdk.frameworks.SystemConfiguration
93-
];
83+
buildInputs = [
84+
sqlite
85+
zstd
86+
];
9487

9588
env = {
9689
ZSTD_SYS_USE_PKG_CONFIG = true;

0 commit comments

Comments
 (0)