From 37bd69e90e6cfd5e117e6cf32a24aec896c2c17c Mon Sep 17 00:00:00 2001 From: yukkop Date: Fri, 11 Sep 2026 09:19:03 +0000 Subject: [PATCH] fix: avoid Cargo metadata IFD --- lib/default.nix | 2 +- package/postgres/pg-from/default.nix | 2 +- package/postgres/pg-migration/default.nix | 2 +- package/postgres/pg-schema/default.nix | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/default.nix b/lib/default.nix index e9fbe656..b6ab9f72 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -126,7 +126,7 @@ in { else throw (envErrorMessage varName); # -- Cargo.toml -- - cargoToml = src: (builtins.fromTOML (builtins.readFile "${src}/Cargo.toml")); + cargoToml = manifest: (builtins.fromTOML (builtins.readFile manifest)); # Consolidated SQL bundles for the `hectic` schema. Single source of truth # for everything that creates objects in the `hectic` namespace, used by diff --git a/package/postgres/pg-from/default.nix b/package/postgres/pg-from/default.nix index 266ae25b..76e88db7 100644 --- a/package/postgres/pg-from/default.nix +++ b/package/postgres/pg-from/default.nix @@ -5,7 +5,7 @@ ... }: let src = ./.; - cargo = cargoToml src; + cargo = cargoToml ./Cargo.toml; in pkgs.rustPlatform.buildRustPackage { pname = cargo.package.name; diff --git a/package/postgres/pg-migration/default.nix b/package/postgres/pg-migration/default.nix index f69c04e3..de5598a4 100644 --- a/package/postgres/pg-migration/default.nix +++ b/package/postgres/pg-migration/default.nix @@ -6,7 +6,7 @@ ... }: let src = ./.; - cargo = cargoToml src; + cargo = cargoToml ./Cargo.toml; in pkgs.rustPlatform.buildRustPackage { pname = cargo.package.name; diff --git a/package/postgres/pg-schema/default.nix b/package/postgres/pg-schema/default.nix index b21399f9..eddb32f9 100644 --- a/package/postgres/pg-schema/default.nix +++ b/package/postgres/pg-schema/default.nix @@ -5,7 +5,7 @@ ... }: let src = ./.; - cargo = cargoToml src; + cargo = cargoToml ./Cargo.toml; in pkgs.rustPlatform.buildRustPackage { pname = cargo.package.name;