Unverified Commit e87f214d authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #217715 from sirkonst/patch-1

edgedb: 2.0.1 -> 2.3.1
parents 3280c3a6 988df29a
Loading
Loading
Loading
Loading
+13 −5
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
, patchelf
, fetchFromGitHub
, rustPlatform
, makeWrapper
, makeBinaryWrapper
, pkg-config
, curl
, Security
@@ -13,22 +13,25 @@
, xz
, perl
, substituteAll
# for passthru.tests:
, edgedb
, testers
}:

rustPlatform.buildRustPackage rec {
  pname = "edgedb";
  version = "2.0.1";
  version = "2.3.1";

  src = fetchFromGitHub {
    owner = "edgedb";
    repo = "edgedb-cli";
    rev =  "v${version}";
    sha256 = "sha256-U+fF0t+dj8wUfCviNu/zcoz3lhMXcQlDgz8B3gB+EJI=";
    sha256 = "sha256-iL8tD6cvFVWqsQAk6HBUqdz7MJ3lT2XmExGQvdQdIWs=";
  };

  cargoSha256 = "sha256-Pm3PBg7sbFwLHaozfsbQbPd4gmcMUHxmGT4AsQRDX0g=";
  cargoSha256 = "sha256-dGeRTo6pFwDKd/nTaA3R9DWGiAL0Dm6jEVR1zhF6/BQ=";

  nativeBuildInputs = [ makeWrapper pkg-config perl ];
  nativeBuildInputs = [ makeBinaryWrapper pkg-config perl ];

  buildInputs = [
    curl
@@ -46,6 +49,11 @@ rustPlatform.buildRustPackage rec {

  doCheck = false;

  passthru.tests.version = testers.testVersion {
    package = edgedb;
    command = "edgedb --version";
  };

  meta = with lib; {
    description = "EdgeDB cli";
    homepage = "https://www.edgedb.com/docs/cli/index";