20 rustPlatform.buildRustPackage rec {
24 src = fetchFromGitHub {
28 hash = "sha256-PHtjm3xlGwkDskH3A9/QQrmzt2Xi+sqnQAQV6WG7a6M=";
29 fetchSubmodules = true;
33 lockFile = ./Cargo.lock;
35 "edgedb-derive-0.5.1" = "sha256-1tbWg3bLab3xlVQxb4G+kpXriO+zQpnrwAESy5Tqsu4=";
36 "edgeql-parser-0.1.0" = "sha256-c5xBuW47xXgy8VLR/P7DvVhLBd0rvI6P9w82IPPsTwo=";
37 "indexmap-2.0.0-pre" = "sha256-QMOmoUHE1F/sp+NeDpgRGqqacWLHWG02YgZc5vAdXZY=";
38 "rexpect-0.5.0" = "sha256-vstAL/fJWWx7WbmRxNItKpzvgGF3SvJDs5isq9ym/OA=";
39 "rustyline-8.0.0" = "sha256-CrICwQbHPzS4QdVIEHxt2euX+g+0pFYe84NfMp1daEc=";
40 "serde_str-1.0.0" = "sha256-CMBh5lxdQb2085y0jc/DrV6B8iiXvVO2aoZH/lFFjak=";
44 nativeBuildInputs = [ makeBinaryWrapper pkg-config perl ];
48 ] ++ lib.optionals stdenv.isDarwin [ CoreServices Security libiconv xz ];
54 src = ./0001-dynamically-patchelf-binaries.patch;
56 dynamicLinker = stdenv.cc.bintools.dynamicLinker;
62 passthru.tests.version = testers.testVersion {
64 command = "edgedb --version";
68 description = "EdgeDB cli";
69 homepage = "https://www.edgedb.com/docs/cli/index";
70 license = with licenses; [ asl20 /* or */ mit ];
71 maintainers = with maintainers; [ ahirner kirillrdy ];
72 mainProgram = "edgedb";