NixOS / NixOS/nix.dev

Misunderstanding on page /tutorials/first-steps/reproducible-scripts.html

Open
#1,096 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Nix
Stars
4k
Forks
339
Avg merge
2d 11h
Merged PRs (30d)
7

Description

#!/usr/bin/env nix-shell
#! nix-shell -i bash --pure
#! nix-shell -p bash cacert curl jq python3Packages.xmljson
#! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/2a601aafdc5605a5133a2ca506a34a3a73377247.tar.gz

curl https://github.com/NixOS/nixpkgs/releases.atom | xml2json | jq .

I'm newcomer to nix and I don't understand why nix channel is changed after imports.
Is it okay to post misunderstandings here?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review /tutorials/first-steps/reproducible-scripts.html and the embedded nix-shell example. Reproduce the import behavior, then clarify in the tutorial why the nixpkgs source or channel appears to change and whether this example is expected. Done means a newcomer can follow the example and understand the resulting channel behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, shell
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.