Comments (3)
We don't detect or manage the script name argument or do anything smarter with it than appending it. The expected way to do your example is:
#!/usr/bin/env nix
#! nix shell .#cabal2nix .#bash -c bash
...
The update script invalidates nixpkgs itself, which can get annoying. An approach to fix that can be like this, depending on what behavior you want.
#!/usr/bin/env nix
#! nix shell ./../../../..?ref=HEAD#cabal2nix ./../../../..?ref=HEAD#bash -c bash
echo starting
from nix.
Adding a line like
#! nix -i ../../../..#bash
does not help (except to make it slower)
from nix.
I forgot. I think it'd be good to highlight this mechanism in the manual.
from nix.
Related Issues (20)
- Regression test --keep-failed (e.g. NixOS VM)
- Nix daemon crashes on CI, seemingly in the wake of Github action cache throtling magic-nix-cache
- Can not set negative priorities with `nix-env`
- NIX installtation HOT 2
- The manpage for `nix flake archive` still displays FIXME for the description HOT 1
- NIX_STATE_HOME: unbound variable HOT 1
- aarch64-linux build is broken HOT 3
- Problem with Nix installation HOT 3
- Declarative env management with nix profile is too hard HOT 12
- Freebsd cross-compilation fails to link libexpr-c HOT 7
- Inconsistent segfaults in `concatLists` during evaluation HOT 11
- Provide a way to exclude packages from flake check HOT 1
- Different package hashes on x86_64-darwin and aarch64-darwin when building for x86_64 HOT 1
- Store path quirks
- `:doc` comments for attributes loaded into scope
- Installation issue on bootstrapping Nix in to the default profile HOT 1
- Flakes break when being part of an sha256 git repository HOT 3
- Nix not installing on macOS 15.0 HOT 9
- Setting up the build group nixbld ---- oh no! HOT 1
- Nix installation failure 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.