Commit aa63f2f9 authored by Christoph Heiss's avatar Christoph Heiss Committed by Alyssa Ross
Browse files
parent 501e8409
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -10,20 +10,20 @@
  libiconv,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "matrix-sdk-crypto-nodejs";
  version = "0.3.0-beta.1-unstable-2025-02-11";
  version = "0.4.0-beta.1";

  src = fetchFromGitHub {
    owner = "matrix-org";
    repo = "matrix-rust-sdk-crypto-nodejs";
    rev = "f74a37e9c8f5af005119464a3501346b8c22695f";
    hash = "sha256-QHKFD9PPUXMb78GjSabk3vWnd5DIhTjtBZL8e/Tuw0g=";
    rev = "v${finalAttrs.version}";
    hash = "sha256-Rl0xtaEj2RnW9HPN94hjETwiMInxT1XGa1BocldQAPs=";
  };

  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit pname version src;
    hash = "sha256-hKuFu8T7zCXlmiG7k3WJsLSDYhIu6vT5la+AZOmz8EM=";
    inherit (finalAttrs) pname version src;
    hash = "sha256-4AC+l52I8Z3sXiViNPe6GLCl1Z+GpqjbwkcFX6BhxDA=";
  };

  nativeBuildInputs = [
@@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
  installPhase = ''
    runHook preInstall

    local -r outPath="$out/lib/node_modules/@matrix-org/${pname}"
    local -r outPath="$out/lib/node_modules/@matrix-org/${finalAttrs.pname}"
    mkdir -p "$outPath"
    cp package.json index.js index.d.ts matrix-sdk-crypto.*.node "$outPath"

@@ -67,4 +67,4 @@ stdenv.mkDerivation rec {
    # napi_build doesn't handle most cross-compilation configurations
    broken = (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) || stdenv.hostPlatform.isStatic;
  };
}
})