using enableStatic to determine glibc dependency

This commit is contained in:
hutli 2024-03-04 12:45:03 +01:00
parent 3cfb0f01c8
commit d12f2399ac

View file

@ -171,7 +171,7 @@ effectiveStdenv.mkDerivation (
# once https://github.com/NixOS/nixpkgs/pull/275241 has been merged # once https://github.com/NixOS/nixpkgs/pull/275241 has been merged
cudaPackages.autoAddOpenGLRunpathHook cudaPackages.autoAddOpenGLRunpathHook
] ]
++ optionals buildStatic [ ++ optionals (effectiveStdenv.hostPlatform.isGnu && enableStatic) [
glibc.static glibc.static
]; ];