Skip to content

Commit

Permalink
[Backport release-24.11] diesel-cli: 2.2.5 -> 2.2.6 (#363091)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Dec 8, 2024
2 parents a772e29 + cbfaf56 commit 3a9ce92
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 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 @@ -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
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 3a9ce92

Please sign in to comment.