Skip to content

Commit

Permalink
diesel-cli: migrate to new darwin SDK pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
getchoo committed Dec 4, 2024
1 parent f73975a commit e032f3a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkgs/by-name/di/diesel-cli/package.nix
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 [
Expand Down

0 comments on commit e032f3a

Please sign in to comment.