fix(nix): filter optional dependencies by target platform (#8033)
This commit is contained in:
parent
d527ceeb2b
commit
ca1b597b01
5 changed files with 131 additions and 14 deletions
|
|
@ -5,6 +5,8 @@
|
|||
bun,
|
||||
cacert,
|
||||
curl,
|
||||
bunCpu,
|
||||
bunOs,
|
||||
}:
|
||||
args:
|
||||
stdenvNoCC.mkDerivation {
|
||||
|
|
@ -29,8 +31,8 @@ stdenvNoCC.mkDerivation {
|
|||
export HOME=$(mktemp -d)
|
||||
export BUN_INSTALL_CACHE_DIR=$(mktemp -d)
|
||||
bun install \
|
||||
--cpu="*" \
|
||||
--os="*" \
|
||||
--cpu="${bunCpu}" \
|
||||
--os="${bunOs}" \
|
||||
--frozen-lockfile \
|
||||
--ignore-scripts \
|
||||
--no-progress \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue