alexandria: use cargoRoot instead of sourceRoot to avoid hacks

This commit is contained in:
TomaSajt 2025-05-14 20:39:58 +02:00
parent 851c8b9a53
commit eca64935f2
No known key found for this signature in database
GPG Key ID: F011163C050122A1

View File

@ -27,16 +27,14 @@ rustPlatform.buildRustPackage rec {
fetchSubmodules = true;
};
prePatch = ''
chmod +w .. # make sure that /build/source is writeable
'';
npmDeps = fetchNpmDeps {
inherit src;
sourceRoot = "${src.name}";
hash = "sha256-6r9bEY7e1Eef/0/CJ26ITpFJcCVUEKLrFx+TNEomLPE=";
};
cargoRoot = "src-tauri";
buildAndTestSubdir = "src-tauri";
useFetchCargoVendor = true;
cargoHash = "sha256-VX/G4dF9DhlGfifp4xf9xkXli7BHFtKY2+HaMHqqPiA=";
@ -61,12 +59,6 @@ rustPlatform.buildRustPackage rec {
libappindicator-gtk3
];
npmRoot = "..";
sourceRoot = "${src.name}/src-tauri";
buildAndTestDir = ".";
meta = {
homepage = "https://github.com/btpf/Alexandria";
changelog = "https://github.com/btpf/Alexandria/releases/tag/v${version}";