alexandria: use cargoRoot instead of sourceRoot to avoid hacks (#407107)

Aleksana 81b29eca 406a695e

Changed files
+3 -11
pkgs
by-name
al
alexandria
+3 -11
pkgs/by-name/al/alexandria/package.nix
···
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=";
···
librsvg
libappindicator-gtk3
];
-
-
npmRoot = "..";
-
-
sourceRoot = "${src.name}/src-tauri";
-
-
buildAndTestDir = ".";
meta = {
homepage = "https://github.com/btpf/Alexandria";