17 rustPlatform.buildRustPackage rec {
21 src = fetchFromGitHub {
24 rev = "refs/tags/v${version}";
25 hash = "sha256-CSs1Ql0zsGgSmZrlZIfj2pJdtAax7HUlfCq8oTbReng=";
26 fetchSubmodules = true;
30 lockFile = ./Cargo.lock;
32 "edgedb-derive-0.5.2" = "sha256-5nvpkmTRcGO4a/Mc+qLp2+u9bWSnHQ/1NT2FW9ii0AU=";
33 "edgeql-parser-0.1.0" = "sha256-dhLwBW4ellai9R9TjlJ/qEhZQRXE9D/+QxZsq3I9PRk=";
34 "rexpect-0.5.0" = "sha256-vstAL/fJWWx7WbmRxNItKpzvgGF3SvJDs5isq9ym/OA=";
35 "scram-0.7.0" = "sha256-QTPxyXBpMXCDkRRJEMYly1GKp90khrwwuMI1eHc2H+Y=";
36 "serde_str-1.0.0" = "sha256-CMBh5lxdQb2085y0jc/DrV6B8iiXvVO2aoZH/lFFjak=";
37 "test-utils-0.1.0" = "sha256-FoF/U89Q9E2Dlmpoh+cfDcScmhcsSNut+rE7BECJSJI=";
38 "warp-0.3.6" = "sha256-knDt2aw/PJ0iabhKg+okwwnEzCY+vQVhE7HKCTM6QbE=";
51 ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
54 ++ lib.optionals stdenv.hostPlatform.isDarwin [
62 src = ./0001-dynamically-patchelf-binaries.patch;
64 dynamicLinker = stdenv.cc.bintools.dynamicLinker;
69 OPENSSL_NO_VENDOR = true;
74 passthru.tests.version = testers.testVersion {
76 command = "edgedb --version";
80 description = "EdgeDB cli";
81 homepage = "https://www.edgedb.com/docs/cli/index";
82 license = with lib.licenses; [
87 maintainers = with lib.maintainers; [
91 mainProgram = "edgedb";