From ae169b42ac1715e9ba80a94e8c42f230aea803e1 Mon Sep 17 00:00:00 2001 From: DavHau Date: Thu, 10 Mar 2022 14:41:29 +0700 Subject: [PATCH] fix: path of path dependencies not computer correctly --- src/default.nix | 1 - src/fetchers/default-fetcher.nix | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/default.nix b/src/default.nix index 2b68bbff..39b3001c 100644 --- a/src/default.nix +++ b/src/default.nix @@ -180,7 +180,6 @@ cp -r ${./.} $out chmod +w $out mkdir $out/external - ls -lah ${externalDir} cp -r ${externalDir}/* $out/external/ ''; diff --git a/src/fetchers/default-fetcher.nix b/src/fetchers/default-fetcher.nix index ad4b8dbc..d9c9a80f 100644 --- a/src/fetchers/default-fetcher.nix +++ b/src/fetchers/default-fetcher.nix @@ -25,8 +25,7 @@ then if lib.isStorePath source.path then source.path - # assume path relative to main package source - else "${overriddenSources."${defaultPackage}"."${defaultPackageVersion}"}/${source.path}" + else "${overriddenSources."${source.rootName}"."${source.rootVersion}"}/${source.path}" else if fetchers.fetchers ? "${source.type}" then fetchSource {