1
1
mirror of https://github.com/nix-community/dream2nix.git synced 2024-12-21 05:21:32 +03:00

fix(rust): put relative paths instead of store paths in lockfile for path deps

This commit is contained in:
Yusuf Bera Ertan 2022-01-08 14:33:32 +03:00
parent e8c4baf602
commit 2477a55fbb
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA

View File

@ -201,12 +201,12 @@
path = dependencyObject:
let
findCratePath = name:
l.dirOf (
l.baseNameOf (l.dirOf (
l.findFirst
(toml: toml.value.package.name == name)
(throw "could not find crate ${name}")
cargoPackages
).path;
).path);
in
{
path = findCratePath dependencyObject.name;