-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16516fa
commit 4f42490
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ lib | ||
, runCommandLocal | ||
, buildPlatform | ||
, xrootd | ||
, url | ||
, hash | ||
}: runCommandLocal (baseNameOf url) | ||
{ | ||
nativeBuildInputs = [ xrootd ]; | ||
outputHashAlgo = null; | ||
outputHashMode = "flat"; | ||
outputHash = hash; | ||
inherit url; | ||
} | ||
# Set [DY]LD_LIBRARY_PATH to workaround #169677 | ||
# TODO: Remove the library path after #200830 get merged | ||
'' | ||
${lib.optionalString buildPlatform.isDarwin "DY"}LD_LIBRARY_PATH=${lib.makeLibraryPath [ xrootd ]} xrdcp --force "$url" "$out" | ||
'' |