diff --git a/pkgs/applications/blockchains/lighthouse/default.nix b/pkgs/applications/blockchains/lighthouse/default.nix index 4d1a81d5da1a..2afce895da6e 100644 --- a/pkgs/applications/blockchains/lighthouse/default.nix +++ b/pkgs/applications/blockchains/lighthouse/default.nix @@ -6,7 +6,7 @@ , lighthouse , nix-update-script , nodePackages -, perl +, openssl , pkg-config , postgresql , protobuf @@ -57,7 +57,6 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ rustPlatform.bindgenHook cmake - perl pkg-config protobuf ]; @@ -65,6 +64,8 @@ rustPlatform.buildRustPackage rec { buildInputs = [ rust-jemalloc-sys sqlite + ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ + openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreFoundation Security @@ -84,6 +85,8 @@ rustPlatform.buildRustPackage rec { LIGHTHOUSE_DEPOSIT_CONTRACT_SPEC_URL = "file://${depositContractSpec}"; LIGHTHOUSE_DEPOSIT_CONTRACT_TESTNET_URL = "file://${testnetDepositContractSpec}"; + OPENSSL_NO_VENDOR = true; + cargoBuildFlags = [ "--package lighthouse" ]; diff --git a/pkgs/by-name/av/avml/package.nix b/pkgs/by-name/av/avml/package.nix index 6ae9f4378ec6..f556430666dc 100644 --- a/pkgs/by-name/av/avml/package.nix +++ b/pkgs/by-name/av/avml/package.nix @@ -2,7 +2,8 @@ lib, fetchFromGitHub, rustPlatform, - perl, + pkg-config, + openssl, testers, avml, nix-update-script, @@ -21,7 +22,12 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-gcpjrxnQDyO92OW6LZVc4x73TmTtQoaEYhmGmqhz8ng="; - nativeBuildInputs = [ perl ]; + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ openssl ]; + + env = { + OPENSSL_NO_VENDOR = true; + }; passthru.tests.version = testers.testVersion { package = avml; }; diff --git a/pkgs/by-name/de/deltachat-repl/package.nix b/pkgs/by-name/de/deltachat-repl/package.nix index fe97f891caa7..eedda8a397af 100644 --- a/pkgs/by-name/de/deltachat-repl/package.nix +++ b/pkgs/by-name/de/deltachat-repl/package.nix @@ -1,6 +1,5 @@ { rustPlatform , libdeltachat -, perl , pkg-config }: @@ -10,10 +9,13 @@ rustPlatform.buildRustPackage { inherit (libdeltachat) version src cargoLock buildInputs; nativeBuildInputs = [ - perl pkg-config ]; + env = { + OPENSSL_NO_VENDOR = true; + }; + cargoBuildFlags = [ "--package" "deltachat-repl" ]; doCheck = false; diff --git a/pkgs/by-name/de/deltachat-rpc-server/package.nix b/pkgs/by-name/de/deltachat-rpc-server/package.nix index b7d0dbef2374..1e1e95796771 100644 --- a/pkgs/by-name/de/deltachat-rpc-server/package.nix +++ b/pkgs/by-name/de/deltachat-rpc-server/package.nix @@ -1,6 +1,5 @@ { rustPlatform , libdeltachat -, perl , pkg-config }: @@ -10,10 +9,13 @@ rustPlatform.buildRustPackage { inherit (libdeltachat) version src cargoLock buildInputs; nativeBuildInputs = [ - perl pkg-config ]; + env = { + OPENSSL_NO_VENDOR = true; + }; + cargoBuildFlags = [ "--package" "deltachat-rpc-server" ]; doCheck = false; diff --git a/pkgs/development/tools/rover/default.nix b/pkgs/development/tools/rover/default.nix index 92b5339fdfe9..978935595fec 100644 --- a/pkgs/development/tools/rover/default.nix +++ b/pkgs/development/tools/rover/default.nix @@ -1,7 +1,8 @@ { lib , fetchFromGitHub -, perl +, pkg-config , rustPlatform +, openssl , darwin , stdenv }: @@ -19,16 +20,22 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-Rf4kRXYW+WAF1rM7o8PmXBLgp/YyA8y/TqbZL22VOqI="; - buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ + buildInputs = [ + openssl + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security darwin.apple_sdk.frameworks.CoreServices darwin.apple_sdk.frameworks.SystemConfiguration ]; nativeBuildInputs = [ - perl + pkg-config ]; + env = { + OPENSSL_NO_VENDOR = true; + }; + # This test checks whether the plugins specified in the plugins json file are # valid by making a network call to the repo that houses their binaries; but, the # build env can't make network calls (impurity) diff --git a/pkgs/tools/networking/edgedb/default.nix b/pkgs/tools/networking/edgedb/default.nix index c5f360cd2505..7d6b31c3090f 100644 --- a/pkgs/tools/networking/edgedb/default.nix +++ b/pkgs/tools/networking/edgedb/default.nix @@ -7,11 +7,11 @@ makeBinaryWrapper, pkg-config, curl, + openssl, Security, CoreServices, libiconv, xz, - perl, substituteAll, # for passthru.tests: edgedb, @@ -19,26 +19,27 @@ }: rustPlatform.buildRustPackage rec { pname = "edgedb"; - version = "5.3.0"; + version = "5.2.3"; src = fetchFromGitHub { owner = "edgedb"; repo = "edgedb-cli"; - rev = "refs/tags/v${version}"; - hash = "sha256-oG3KxORNppQDa84CXjSxM9Z9GDLby+irUbEncyjoJU4="; + rev = "v${version}"; + hash = "sha256-WlXX1ACSZZNV0VBCoZjC1wLDF0qjIdjNJ4rQu6fBGfM="; fetchSubmodules = true; }; cargoLock = { lockFile = ./Cargo.lock; outputHashes = { - "edgedb-derive-0.5.2" = "sha256-9vmaMOoZ5VmbJ0/eN0XdE5hrID/BK4IkLnIwucgRr2w="; - "edgeql-parser-0.1.0" = "sha256-WUNiUgfuzbr+zNYgJivalUK5kPSvkVcgp4Zq3pmoa/w="; + "edgedb-derive-0.5.1" = "sha256-ATldvarkp/W5bz55qoMtfTMcueWklyKnrJUHvLKlWh0="; + "edgeql-parser-0.1.0" = "sha256-KPi2M2UEN+p3V/fcmKtb3K9XTLC4vJ5H+yG8ZfD7RBs="; "indexmap-2.0.0-pre" = "sha256-QMOmoUHE1F/sp+NeDpgRGqqacWLHWG02YgZc5vAdXZY="; - "rustyline-8.0.0" = "sha256-CrICwQbHPzS4QdVIEHxt2euX+g+0pFYe84NfMp1daEc="; "rexpect-0.5.0" = "sha256-vstAL/fJWWx7WbmRxNItKpzvgGF3SvJDs5isq9ym/OA="; + "rustyline-8.0.0" = "sha256-CrICwQbHPzS4QdVIEHxt2euX+g+0pFYe84NfMp1daEc="; "serde_str-1.0.0" = "sha256-CMBh5lxdQb2085y0jc/DrV6B8iiXvVO2aoZH/lFFjak="; "scram-0.7.0" = "sha256-QTPxyXBpMXCDkRRJEMYly1GKp90khrwwuMI1eHc2H+Y="; + "test-cert-gen-0.10.0-pre" = "sha256-Hyk4/iw6/SgEI70vPCNNbE9+nQ0pOAM158hncyUbvp8="; "test-utils-0.1.0" = "sha256-FoF/U89Q9E2Dlmpoh+cfDcScmhcsSNut+rE7BECJSJI="; "warp-0.3.6" = "sha256-knDt2aw/PJ0iabhKg+okwwnEzCY+vQVhE7HKCTM6QbE="; }; @@ -47,11 +48,15 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ makeBinaryWrapper pkg-config - perl ]; buildInputs = - [ curl ] + [ + curl + ] + ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ + openssl + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices Security @@ -69,6 +74,10 @@ rustPlatform.buildRustPackage rec { }) ]; + env = { + OPENSSL_NO_VENDOR = true; + }; + doCheck = false; passthru.tests.version = testers.testVersion {