diff --git a/pkgs/by-name/di/diesel-cli/package.nix b/pkgs/by-name/di/diesel-cli/package.nix index b4f721c5305db..37b0afc49ebb0 100644 --- a/pkgs/by-name/di/diesel-cli/package.nix +++ b/pkgs/by-name/di/diesel-cli/package.nix @@ -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 @@ -27,15 +27,15 @@ assert lib.assertMsg (lib.elem true [ rustPlatform.buildRustPackage rec { pname = "diesel-cli"; - version = "2.2.5"; + version = "2.2.6"; src = fetchCrate { inherit version; crateName = "diesel_cli"; - hash = "sha256-cMGSBZ2UexIvSWRI2LIXR7thKciM9+HTB4V8FWpP3ZU="; + hash = "sha256-jKTQxlmpTlb0eITwNbnYfONknGhHsO/nzdup04ikEB0="; }; - cargoHash = "sha256-Qdi9zdBiaAWS0Ao/8Z1jrb07FLE92ETd7RCMd/7J+mI="; + cargoHash = "sha256-+QbCPHczxCkDOFo/PDFTK0xReCWoz8AiLNwXA3aG9N0="; nativeBuildInputs = [ installShellFiles @@ -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 [