c8d4dabc43
Remove optional builtins prefixes from prelude functions by running:
builtins=(
abort
baseNameOf
break
derivation
derivationStrict
dirOf
false
fetchGit
fetchMercurial
fetchTarball
fetchTree
fromTOML
import
isNull
map
null
placeholder
removeAttrs
scopedImport
throw
toString
true
)
fd \
--type file \
. \
pkgs \
--exec-batch sed --in-place --regexp-extended "
s/\<builtins\.($(
printf '%s\n' "${builtins[@]}" |
paste --delimiter '|' --serial -
))\>/\1/g
"
nix fmt
30 lines
541 B
Nix
30 lines
541 B
Nix
{ pkgs }:
|
|
{
|
|
|
|
# List of libraries that are needed for conda binary packages.
|
|
# When installing a conda binary package, just extend
|
|
# the `buildInputs` with `condaAutopatchLibs`.
|
|
condaPatchelfLibs = map (p: p.lib or p) (
|
|
[
|
|
pkgs.alsa-lib
|
|
pkgs.cups
|
|
pkgs.gcc-unwrapped
|
|
pkgs.libGL
|
|
]
|
|
++ (with pkgs.xorg; [
|
|
libSM
|
|
libICE
|
|
libX11
|
|
libXau
|
|
libXdamage
|
|
libXi
|
|
libXrender
|
|
libXrandr
|
|
libXcomposite
|
|
libXcursor
|
|
libXtst
|
|
libXScrnSaver
|
|
])
|
|
);
|
|
}
|