FAQ: Difference between revisions
imported>Lheckemann Add docs on nix-env -i without -A |
imported>Samueldr + There's an updated version for $software on nixpkgs but not in channels, how can I use it? |
||
| Line 237: | Line 237: | ||
<syntaxhighlight lang="bash">nix-instantiate --find-file nixpkgs</syntaxhighlight> | <syntaxhighlight lang="bash">nix-instantiate --find-file nixpkgs</syntaxhighlight> | ||
To know the commit, open the .version-suffix file in the nixpkgs location. The hash after the dot is the git commit. | To know the commit, open the .version-suffix file in the nixpkgs location. The hash after the dot is the git commit. | ||
== There's an updated version for $software on nixpkgs but not in channels, how can I use it? == | |||
You can jump the queue and use <code>nix-shell</code> with a <code>NIX_PATH</code> pointing to a tarball of the channel to get a shell for that software. Some building may occur. This will not work for system services. | |||
<syntaxhighlight lang="command"> | |||
NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/release-17.09.tar.gz nix-shell -p $software | |||
</command> | |||
== An error occurs while fetching sources from an url, how do I fix it? == | == An error occurs while fetching sources from an url, how do I fix it? == | ||