Skip to content

Commit

Permalink
Update dependencies and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukant Hajra committed Apr 13, 2024
1 parent e98d2c9 commit 47fac5b
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions doc/nix-usage-flakes.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ After a successful call of `nix build`, you'll see one or more symlinks for each
readlink result*
```

/nix/store/c9pxlzsvv5rb40hd21cvhbab825ddcpj-org2gfm
/nix/store/qwfn011mrh44356bbx8hm5skgwh9az0x-org2gfm

Following these symlinks, we can see the files the project provides:

Expand All @@ -290,7 +290,7 @@ It's common to configure these “result” symlinks as ignored in source contro
nix path-info .#org2gfm
```

/nix/store/c9pxlzsvv5rb40hd21cvhbab825ddcpj-org2gfm
/nix/store/qwfn011mrh44356bbx8hm5skgwh9az0x-org2gfm

## Running commands in a shell<a id="sec-4-6"></a>

Expand Down Expand Up @@ -403,7 +403,7 @@ nix shell --ignore-environment \
--command which org2gfm
```

/nix/store/c9pxlzsvv5rb40hd21cvhbab825ddcpj-org2gfm/bin/org2gfm
/nix/store/qwfn011mrh44356bbx8hm5skgwh9az0x-org2gfm/bin/org2gfm

What we do with local flake references can work just as well with remote flake references.

Expand Down Expand Up @@ -431,7 +431,7 @@ nix profile list
Flake attribute: packages.x86_64-linux.org2gfm
Original flake URL: git+file:///home/shajra/src/nix-project
Locked flake URL: git+file:///home/shajra/src/nix-project
Store paths: /nix/store/c9pxlzsvv5rb40hd21cvhbab825ddcpj-org2gfm
Store paths: /nix/store/qwfn011mrh44356bbx8hm5skgwh9az0x-org2gfm

If we want to uninstall a program from our profile, we do so by the index from this list:

Expand Down
8 changes: 4 additions & 4 deletions doc/nix-usage-flakes.org
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ readlink result*
#+end_src

#+RESULTS: nix-build-link
: /nix/store/c9pxlzsvv5rb40hd21cvhbab825ddcpj-org2gfm
: /nix/store/qwfn011mrh44356bbx8hm5skgwh9az0x-org2gfm

Following these symlinks, we can see the files the project provides:

Expand Down Expand Up @@ -469,7 +469,7 @@ nix path-info .#<<get("package-attr-short")>>
#+end_src

#+results: nix-build-path
: /nix/store/c9pxlzsvv5rb40hd21cvhbab825ddcpj-org2gfm
: /nix/store/qwfn011mrh44356bbx8hm5skgwh9az0x-org2gfm

** Running commands in a shell

Expand Down Expand Up @@ -631,7 +631,7 @@ nix shell --ignore-environment \
#+end_src

#+RESULTS: nix-shell-remote
: /nix/store/c9pxlzsvv5rb40hd21cvhbab825ddcpj-org2gfm/bin/org2gfm
: /nix/store/qwfn011mrh44356bbx8hm5skgwh9az0x-org2gfm/bin/org2gfm

What we do with local flake references can work just as well with remote flake
references.
Expand Down Expand Up @@ -682,7 +682,7 @@ nix profile list --profile /tmp/nix-profile | ansifilter
: Flake attribute: packages.x86_64-linux.org2gfm
: Original flake URL: git+file:///home/shajra/src/nix-project
: Locked flake URL: git+file:///home/shajra/src/nix-project
: Store paths: /nix/store/c9pxlzsvv5rb40hd21cvhbab825ddcpj-org2gfm
: Store paths: /nix/store/qwfn011mrh44356bbx8hm5skgwh9az0x-org2gfm

If we want to uninstall a program from our profile, we do so by the index from
this list:
Expand Down
4 changes: 2 additions & 2 deletions doc/nix-usage-noflakes.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ We can build this package with `nix-build` from the project root:
nix-build --attr packages.x86_64-linux.org2gfm .
```

/nix/store/c9pxlzsvv5rb40hd21cvhbab825ddcpj-org2gfm
/nix/store/qwfn011mrh44356bbx8hm5skgwh9az0x-org2gfm

If we omit the path to a Nix file, `nix-build` will try to build `default.nix` in the current directory. If we omit the `--attr` switch and argument, `nix-build` will try to build packages it finds in the root of the attribute tree.

Expand All @@ -173,7 +173,7 @@ The output of `nix-build` shows us where in `/nix/store` our package has been bu
readlink result*
```

/nix/store/c9pxlzsvv5rb40hd21cvhbab825ddcpj-org2gfm
/nix/store/qwfn011mrh44356bbx8hm5skgwh9az0x-org2gfm

Following these symlinks, we can see the files the project provides:

Expand Down
4 changes: 2 additions & 2 deletions doc/nix-usage-noflakes.org
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ nix-build --attr <<get("package-attr-long")>> .
#+end_src

#+RESULTS: nix-build
: /nix/store/c9pxlzsvv5rb40hd21cvhbab825ddcpj-org2gfm
: /nix/store/qwfn011mrh44356bbx8hm5skgwh9az0x-org2gfm

If we omit the path to a Nix file, =nix-build= will try to build =default.nix=
in the current directory. If we omit the =--attr= switch and argument,
Expand All @@ -328,7 +328,7 @@ readlink result*
#+end_src

#+RESULTS: nix-build-link
: /nix/store/c9pxlzsvv5rb40hd21cvhbab825ddcpj-org2gfm
: /nix/store/qwfn011mrh44356bbx8hm5skgwh9az0x-org2gfm

Following these symlinks, we can see the files the project provides:

Expand Down
24 changes: 12 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 47fac5b

Please sign in to comment.