project-graph: init at 3.0.7 (#524799)

This commit is contained in:
Pol Dellaiera
2026-05-28 18:54:12 +00:00
committed by GitHub
2 changed files with 101 additions and 0 deletions
+6
View File
@@ -29444,6 +29444,12 @@
github = "wdavidw";
githubId = 46896;
};
wduo87391 = {
name = "wduo87391";
email = "wduo87391@gmail.com";
github = "wduo87391";
githubId = 197874825;
};
weathercold = {
name = "Weathercold";
email = "weathercold.scr@proton.me";
+95
View File
@@ -0,0 +1,95 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
fetchPnpmDeps,
pnpm_10,
nodejs_24,
cargo-tauri,
openssl,
pkg-config,
webkitgtk_4_1,
glib-networking,
wrapGAppsHook4,
pnpmConfigHook,
jq,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "project-graph";
version = "3.0.7";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "graphif";
repo = "project-graph";
tag = "v${finalAttrs.version}";
hash = "sha256-QC1YTcyH7q+TJiGLF7zjKTe1OcfFd74fSFr+23iYMyQ=";
};
cargoHash = "sha256-bsRX+iVo2jInWZvrX1fVE2oAqM8L/5zNzjRwtoviQN0=";
pnpmDeps = fetchPnpmDeps {
inherit (finalAttrs) pname version src;
pnpm = pnpm_10;
fetcherVersion = 3;
hash = "sha256-sTThym++UWKpKFZqhQJCewRKtdYe1tKNcESrxyxpLmY=";
};
postPatch = ''
TAURI_CONFIG="app/src-tauri/tauri.conf.json"
if [ -f "$TAURI_CONFIG" ]; then
echo "Applying Tauri v2 sandbox patches via jq..."
${jq}/bin/jq '.bundle.targets = [] | .bundle.createUpdaterArtifacts = false' "$TAURI_CONFIG" > temp.json && mv temp.json "$TAURI_CONFIG"
fi
'';
preConfigure = ''
export HOME="$TMPDIR"
'';
preBuild = ''
pnpm run build
'';
nativeBuildInputs = [
cargo-tauri.hook
pnpmConfigHook
nodejs_24
pnpm_10
pkg-config
jq
wrapGAppsHook4
];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
glib-networking
openssl
webkitgtk_4_1
];
cargoRoot = "app/src-tauri";
buildAndTestSubdir = finalAttrs.cargoRoot;
docheck = true;
nativeCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Node-based visual tool for organizing thoughts and notes";
homepage = "https://graphif.dev";
license = with lib.licenses; [
mit
gpl3Plus
];
mainProgram = "project-graph";
maintainers = with lib.maintainers; [ wduo87391 ];
platforms = lib.platforms.linux;
};
})