2023-08-22 20:05:09 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, AppKit
|
|
|
|
, Security
|
|
|
|
, fetchFromGitLab
|
|
|
|
, rustPlatform
|
|
|
|
, protobuf
|
|
|
|
, capnproto
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "veilid";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.3.2";
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "veilid";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
sha256 = "sha256-iaWdI6lhxX3xdpd5caPl5cWXrBkWiMc7T/dMXp2hqNM=";
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoLock = {
|
2023-10-09 19:29:22 +00:00
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2024-04-21 15:54:59 +00:00
|
|
|
"ansi-parser-0.9.0" = "sha256-3qTJ4J3QE73ScDShnTFD4WPiZaDaiss0wqXmeRQEIt0=";
|
|
|
|
"cursive-0.20.0" = "sha256-EGKO7JVN9hIqADKKC3mUHHOCSxMjPoXzYBZujzdgk3E=";
|
2023-10-09 19:29:22 +00:00
|
|
|
"cursive_buffered_backend-0.6.1" = "sha256-+sTJnp570HupwaJxV2x+oKyLwNmqQ4HqOH2P1s9Hhw8=";
|
2024-04-21 15:54:59 +00:00
|
|
|
"cursive_table_view-0.14.0" = "sha256-haos82qtobMsFCP3sNRu5u1mki4bsjrV+eqFxUGIHqk=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
};
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
capnproto
|
|
|
|
protobuf
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ AppKit Security ];
|
|
|
|
|
|
|
|
cargoBuildFlags = [
|
|
|
|
"--workspace"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
outputs = [ "out" "lib" "dev" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
moveToOutput "lib" "$lib"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An open-source, peer-to-peer, mobile-first, networked application framework";
|
|
|
|
homepage = "https://veilid.com";
|
|
|
|
license = licenses.mpl20;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ bbigras qbit ];
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
}
|