···
22
+
rustPlatform.buildRustPackage (finalAttrs: {
25
-
tag = "v${version}";
29
+
tag = "v${finalAttrs.version}";
hash = "sha256-Q2j6K4ys/z77+n3kdGJ15rWbFlbbIHBWB9hOARsgg2A=";
28
-
fedistar-frontend = stdenvNoCC.mkDerivation (finalAttrs: {
29
-
pname = "fedistar-frontend";
30
-
inherit version src;
31
-
pnpmDeps = pnpm.fetchDeps {
32
-
inherit pname version src;
33
-
hash = "sha256-xXVsjAXmrsOp+mXrYAxSKz4vX5JApLZ+Rh6hrYlnJDI=";
35
-
nativeBuildInputs = [
56
-
rustPlatform.buildRustPackage {
63
-
sourceRoot = "${src.name}/src-tauri";
33
+
cargoRoot = "src-tauri";
34
+
buildAndTestSubdir = "src-tauri";
useFetchCargoVendor = true;
cargoHash = "sha256-ZJgyrFDtzAH3XqDdnJ27Yn+WsTMrZR2+lnkZ6bw6hzg=";
69
-
substituteInPlace ./tauri.conf.json \
70
-
--replace-fail '"frontendDist": "../out",' '"frontendDist": "${fedistar-frontend}",' \
71
-
--replace-fail '"beforeBuildCommand": "pnpm build",' '"beforeBuildCommand": "",'
39
+
pnpmDeps = pnpm.fetchDeps {
40
+
inherit (finalAttrs) pname version src;
41
+
hash = "sha256-xXVsjAXmrsOp+mXrYAxSKz4vX5JApLZ+Rh6hrYlnJDI=";
···
mainProgram = "fedistar";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ noodlez1232 ];
110
-
changelog = "https://github.com/h3poteto/fedistar/releases/tag/v${version}";
84
+
changelog = "https://github.com/h3poteto/fedistar/releases/tag/v${finalAttrs.version}";