diesel-cli: migrate to new darwin SDK pattern
https://github.com/NixOS/nixpkgs/issues/354146
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
diesel-cli,
|
||||
fetchCrate,
|
||||
rustPlatform,
|
||||
installShellFiles,
|
||||
darwin,
|
||||
libiconv,
|
||||
libmysqlclient,
|
||||
nix-update-script,
|
||||
openssl,
|
||||
pkg-config,
|
||||
postgresql,
|
||||
rustPlatform,
|
||||
sqlite,
|
||||
testers,
|
||||
zlib,
|
||||
diesel-cli,
|
||||
sqliteSupport ? true,
|
||||
postgresqlSupport ? true,
|
||||
mysqlSupport ? true,
|
||||
}:
|
||||
|
||||
assert lib.assertMsg (lib.elem true [
|
||||
postgresqlSupport
|
||||
mysqlSupport
|
||||
@@ -44,8 +44,6 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
buildInputs =
|
||||
[ openssl ]
|
||||
++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.Security
|
||||
++ lib.optional (stdenv.hostPlatform.isDarwin && mysqlSupport) libiconv
|
||||
++ lib.optional sqliteSupport sqlite
|
||||
++ lib.optional postgresqlSupport postgresql
|
||||
++ lib.optionals mysqlSupport [
|
||||
|
||||
Reference in New Issue
Block a user