rio: 0.0.36 -> 0.0.37
[NixPkgs.git] / pkgs / tools / networking / veilid / default.nix
blobd41177eabf30675bd9292562fd53ecbe6ae9f732
1 { lib
2 , stdenv
3 , AppKit
4 , Security
5 , fetchFromGitLab
6 , rustPlatform
7 , protobuf
8 , capnproto
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "veilid";
13   version = "0.3.2";
15   src = fetchFromGitLab {
16     owner = "veilid";
17     repo = pname;
18     rev = "v${version}";
19     sha256 = "sha256-iaWdI6lhxX3xdpd5caPl5cWXrBkWiMc7T/dMXp2hqNM=";
20   };
22   cargoLock = {
23     lockFile = ./Cargo.lock;
24     outputHashes = {
25       "ansi-parser-0.9.0" = "sha256-3qTJ4J3QE73ScDShnTFD4WPiZaDaiss0wqXmeRQEIt0=";
26       "cursive-0.20.0" = "sha256-EGKO7JVN9hIqADKKC3mUHHOCSxMjPoXzYBZujzdgk3E=";
27       "cursive_buffered_backend-0.6.1" = "sha256-+sTJnp570HupwaJxV2x+oKyLwNmqQ4HqOH2P1s9Hhw8=";
28       "cursive_table_view-0.14.0" = "sha256-haos82qtobMsFCP3sNRu5u1mki4bsjrV+eqFxUGIHqk=";
29     };
30   };
32   nativeBuildInputs = [
33     capnproto
34     protobuf
35   ];
37   buildInputs = lib.optionals stdenv.isDarwin [ AppKit Security ];
39   cargoBuildFlags = [
40     "--workspace"
41   ];
43   doCheck = false;
45   outputs = [ "out" "lib" "dev" ];
47   postInstall = ''
48     moveToOutput "lib" "$lib"
49   '';
51   meta = with lib; {
52     description = "An open-source, peer-to-peer, mobile-first, networked application framework";
53     homepage = "https://veilid.com";
54     license = licenses.mpl20;
55     maintainers = with maintainers; [ bbigras qbit ];
56   };