Comments (4)
also in NixOS/nixpkgs#173034
from nix-ld.
I am experiencing this issue, when trying to use nix-ld with flakes. Is there a solution to this?
I am using a devShell:
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in {
devShell = pkgs.mkShell {
NIX_LD = builtins.readFile "${pkgs.stdenv.cc}/nix-support/dynamic-linker";
buildInputs = with pkgs; [
nodePackages.pnpm
];
shellHook = ''
alias npm="pnpm"
'';
};
});
}
from nix-ld.
Try this for NIX_LD to avoid builtins.readFile
pkgs.runCommand "ld.so" {} ''
ln -s "$(cat '${pkgs.stdenv.cc}/nix-support/dynamic-linker')" $out
'');
from nix-ld.
also see #31
from nix-ld.
Related Issues (20)
- Decouple configuration from activation HOT 2
- Enable nix-ld system-wide and include all system packages HOT 4
- Recent update breaks flake's module HOT 3
- Don't allow NIX_LD on setuid binaries
- sigsegv trying to start remote IDE session via JetBrains Gateway HOT 8
- Library in system-wide base libraries not found by executable from python venv HOT 1
- Executing binary with link loader SIGSEVs HOT 2
- LD_LIBRARY_PATH is set within VSCode integrated terminal HOT 6
- Dynamic linking for `boot.binfmt.emulatedSystems` HOT 1
- Docker image support HOT 8
- fail to start VSCode Remote (Node) when using nushell HOT 2
- Can nix-ld be used in docker image created with nix2container? HOT 1
- Possible to enable nix-ld on a per-project basis? HOT 6
- Build is broken for 32 bit targets HOT 1
- Whitelist/Blacklist paths that can use nix-ld HOT 11
- Discussion: An Idea for fixing the child inheritance problem HOT 3
- arm64 non-NixOS support on amd64? HOT 1
- The existence of this project is depressing HOT 1
- Dropped NixOS module HOT 2
- Dependencies failed to build HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix-ld.