nixpkgs/pkgs/tools/networking/edgedb/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

103 lines
2.3 KiB
Nix
Raw Normal View History

{
stdenv,
lib,
patchelf,
fetchFromGitHub,
rustPlatform,
makeBinaryWrapper,
pkg-config,
curl,
2024-09-05 13:59:07 +00:00
openssl,
Security,
CoreServices,
libiconv,
xz,
substituteAll,
# for passthru.tests:
edgedb,
testers,
}:
rustPlatform.buildRustPackage rec {
pname = "edgedb";
2024-09-05 13:59:07 +00:00
version = "5.2.3";
src = fetchFromGitHub {
owner = "edgedb";
repo = "edgedb-cli";
2024-09-05 13:59:07 +00:00
rev = "v${version}";
hash = "sha256-WlXX1ACSZZNV0VBCoZjC1wLDF0qjIdjNJ4rQu6fBGfM=";
2023-06-25 15:47:58 +00:00
fetchSubmodules = true;
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
2024-09-05 13:59:07 +00:00
"edgedb-derive-0.5.1" = "sha256-ATldvarkp/W5bz55qoMtfTMcueWklyKnrJUHvLKlWh0=";
"edgeql-parser-0.1.0" = "sha256-KPi2M2UEN+p3V/fcmKtb3K9XTLC4vJ5H+yG8ZfD7RBs=";
2023-06-25 15:47:58 +00:00
"indexmap-2.0.0-pre" = "sha256-QMOmoUHE1F/sp+NeDpgRGqqacWLHWG02YgZc5vAdXZY=";
"rexpect-0.5.0" = "sha256-vstAL/fJWWx7WbmRxNItKpzvgGF3SvJDs5isq9ym/OA=";
2024-09-05 13:59:07 +00:00
"rustyline-8.0.0" = "sha256-CrICwQbHPzS4QdVIEHxt2euX+g+0pFYe84NfMp1daEc=";
"serde_str-1.0.0" = "sha256-CMBh5lxdQb2085y0jc/DrV6B8iiXvVO2aoZH/lFFjak=";
"scram-0.7.0" = "sha256-QTPxyXBpMXCDkRRJEMYly1GKp90khrwwuMI1eHc2H+Y=";
2024-09-05 13:59:07 +00:00
"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=";
};
};
2024-05-07 07:38:01 +00:00
nativeBuildInputs = [
makeBinaryWrapper
pkg-config
];
buildInputs =
2024-09-05 13:59:07 +00:00
[
curl
]
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
openssl
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
2024-05-07 07:38:01 +00:00
CoreServices
Security
libiconv
xz
];
2024-05-07 07:38:01 +00:00
checkFeatures = [ ];
patches = [
(substituteAll {
src = ./0001-dynamically-patchelf-binaries.patch;
inherit patchelf;
dynamicLinker = stdenv.cc.bintools.dynamicLinker;
})
];
2024-09-05 13:59:07 +00:00
env = {
OPENSSL_NO_VENDOR = true;
};
doCheck = false;
2023-02-22 16:26:04 +00:00
passthru.tests.version = testers.testVersion {
package = edgedb;
command = "edgedb --version";
};
meta = with lib; {
description = "EdgeDB cli";
homepage = "https://www.edgedb.com/docs/cli/index";
license = with licenses; [
asl20
2024-05-07 07:38:01 +00:00
# or
mit
];
2024-05-07 07:38:01 +00:00
maintainers = with maintainers; [
ahirner
kirillrdy
];
2024-02-11 02:19:15 +00:00
mainProgram = "edgedb";
};
}