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

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

86 lines
1.5 KiB
Nix
Raw Normal View History

{
stdenv,
lib,
patchelf,
fetchFromGitHub,
rustPlatform,
makeBinaryWrapper,
pkg-config,
curl,
2024-09-05 13:59:07 +00:00
openssl,
xz,
substituteAll,
# for passthru.tests:
edgedb,
testers,
}:
rustPlatform.buildRustPackage rec {
pname = "edgedb";
version = "6.0.2";
src = fetchFromGitHub {
owner = "edgedb";
repo = "edgedb-cli";
rev = "refs/tags/v${version}";
hash = "sha256-P55LwByDVO3pEzg4OZldXiyli8s5oHvV8MXCDwkF2+8=";
2023-06-25 15:47:58 +00:00
fetchSubmodules = true;
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-oRtgORzp0tabPcyArPgG8LGfYlSPhpaeRPT9QWF5BGs=";
};
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
]
2024-05-07 07:38:01 +00:00
++ lib.optionals stdenv.hostPlatform.isDarwin [
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 = {
description = "EdgeDB cli";
homepage = "https://www.edgedb.com/docs/cli/index";
license = with lib.licenses; [
asl20
2024-05-07 07:38:01 +00:00
# or
mit
];
maintainers = with lib.maintainers; [
2024-05-07 07:38:01 +00:00
ahirner
kirillrdy
];
2024-02-11 02:19:15 +00:00
mainProgram = "edgedb";
};
}