From 8c8ac5ccefac87abd49cc07a0275ac0c0b7fdda2 Mon Sep 17 00:00:00 2001 From: nandi Date: Fri, 31 Jul 2026 18:31:26 -0700 Subject: [PATCH] Fetch vidya via git for nix profile installs. Relative path:../vidya breaks under git+file:// (nix profile add .); stage the published tangled checkout instead. --- flake.lock | 16 ++++++++++------ flake.nix | 6 ++++-- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/flake.lock b/flake.lock index cc757d7..7a92a07 100644 --- a/flake.lock +++ b/flake.lock @@ -25,14 +25,18 @@ "vidya": { "flake": false, "locked": { - "path": "../vidya", - "type": "path" + "lastModified": 1785542525, + "narHash": "sha256-WcA5jn6nlqWpXe5sXoLa/BP5ByVWdDpPTpZaSay96P4=", + "ref": "refs/heads/main", + "rev": "12cc7dd2a8e860e9599448465be7b1362fdf7d88", + "revCount": 21, + "type": "git", + "url": "https://tangled.org/nandi.uk/vidya" }, "original": { - "path": "../vidya", - "type": "path" - }, - "parent": [] + "type": "git", + "url": "https://tangled.org/nandi.uk/vidya" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index a0efa87..7fa0f3d 100644 --- a/flake.nix +++ b/flake.nix @@ -3,9 +3,11 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - # Sibling checkout (same as Cargo path dep). Keeps layout DSL in sync. + # Fetched for pure `nix build` / `nix profile add` (git+file cannot see + # siblings). Local cargo apps still use Cargo.toml path = "../vidya". + # Override while hacking: --override-input vidya path:../vidya vidya = { - url = "path:../vidya"; + url = "git+https://tangled.org/nandi.uk/vidya"; flake = false; }; }; -- 2.51.2