21 rustPlatform.buildRustPackage rec {
25 src = fetchFromGitHub {
29 sha256 = "sha256-iL8tD6cvFVWqsQAk6HBUqdz7MJ3lT2XmExGQvdQdIWs=";
33 lockFile = ./Cargo.lock;
35 "assert_cmd-1.0.1" = "sha256-0MkQG+JKrZXOn8B8q1HdyhZ1hVVb7dPbGEo/76o2YRc=";
36 "edgedb-derive-0.4.0" = "sha256-pE/GchC3JDg0E4twmov86byne+rn28JpIawBbZcJHOg=";
37 "edgeql-parser-0.1.0" = "sha256-e43PBHirALfrxGKi50KvE9aDAunObpXcWNBs62ssgSM=";
38 "rexpect-0.3.0" = "sha256-0a//fPscEXEwv+73Ja7jRf2eRWfF6VCsck9ZZ15zgog=";
39 "rustyline-8.0.0" = "sha256-FyMx2nAVaX0pc481BTlNxeR/NfNrr57FWKLS7+EjPVw=";
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 = [ maintainers.ranfdev ];