Unverified Commit 69b66706 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

matrix-sdk-crypto-nodejs: use fetchCargoVendor and refactor (#386731)

parents e00850f5 e81f3296
Loading
Loading
Loading
Loading
+0 −5564

File deleted.

Preview size limit exceeded, changes collapsed.

+12 −9
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
  src = fetchFromGitHub {
    owner = "matrix-org";
    repo = "matrix-rust-sdk";
    rev = "${pname}-v${version}";
    tag = "${pname}-v${version}";
    hash = "sha256-0p+1cMn9PU+Jk2JW7G+sdzxhMaI3gEAk5w2nm05oBSU=";
  };

@@ -27,11 +27,14 @@ stdenv.mkDerivation rec {
    ./remove-duplicate-dependency.patch
  ];

  cargoDeps = rustPlatform.importCargoLock {
    lockFile = ./Cargo-beta.3.lock;
    outputHashes = {
      "uniffi-0.21.0" = "sha256-blKCfCsSNtr8NtO7Let7VJ/9oGuW9Eu8j9A6/oHUcP0=";
    };
  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit
      pname
      version
      src
      patches
      ;
    hash = "sha256-utpqRh5FIVgEX0dbYIS3GL/np6g6Itz8t27ov5CBrG8=";
  };

  nativeBuildInputs = [
@@ -63,11 +66,11 @@ stdenv.mkDerivation rec {
    runHook postInstall
  '';

  meta = with lib; {
  meta = {
    description = "No-network-IO implementation of a state machine that handles E2EE for Matrix clients";
    homepage = "https://github.com/matrix-org/matrix-rust-sdk/tree/${src.rev}/bindings/matrix-sdk-crypto-nodejs";
    license = licenses.asl20;
    maintainers = with maintainers; [
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [
      winter
      dandellion
    ];