1
0
Fork 0
mirror of https://github.com/NixOS/nix-pills synced 2024-09-19 04:00:13 -04:00
Commit graph

315 commits

Author SHA1 Message Date
Amy de Buitléir 32a6f24667 reworded to avoid two consecutive semi-colons 2018-12-11 19:09:43 +00:00
Graham Christensen edf2059dd1
Merge pull request #92 from liff/04-remove-obsolete-note
Update Attribute sets example and remove obsolete note
2018-12-11 10:00:49 -05:00
Olli Helenius 0da536fa39 Update Attribute sets example and remove obsolete note
The attribute name is quoted correctly by the REPL
in nix 2.1.3.
2018-12-10 20:51:14 +02:00
Wael Nasreddine 500b723563
Merge pull request #91 from mhwombat/master
Miscellaneous minor clarifications
2018-12-10 08:40:21 -08:00
Amy de Buitléir c3ef7065b9 Explained the declare command, as it may be unfamiliar. 2018-12-10 01:03:20 +00:00
Amy de Buitléir f0cf557c58 Explain how to exit the Nix repl 2018-12-10 00:47:42 +00:00
Amy de Buitléir dac4f17468 Indicate that there is additional output not shown 2018-12-10 00:46:39 +00:00
Amy de Buitléir 3401e116b2 Added link to cheatsheet 2018-12-10 00:45:28 +00:00
Amy de Buitléir 81f2324f49
Update 03-enter-environment.xml
Added reference to cheatsheet.
2018-12-10 00:24:00 +00:00
Maximilian Bosch c5c14aaa32
Merge pull request #90 from Ma27/update-docs-for-nix-2.0
Update documentation after Nix 2.0 switch
2018-12-08 16:37:36 +01:00
Maximilian Bosch bcea6b35ed
Update documentation after Nix 2.0 switch
In #89 it has been reported that the third step can't be done as
`nix-repl` doesn't evaluate anymore on 18.09 and unstable as in both
cases an evaluation error will be thrown.

First of all this may confuse new users who want to learn Nix, but don't
know the ecosystem sufficiently to understand why the install failed.

As recent NixOS versions (unstable and 18.09) use Nix 2.0 by default and
unstable doesn't evaluate with Nix 1.x anymore it should be a safe thing
to do now.

This patch covers two aspects:

* Using Nix 2.0: I replayed the installation steps with `nix-env` to
  ensure that the steps and explanations provided in the first three
  chapters are still valid.

* Replacing `nix-repl` references: most of the cases it was sufficient
  to replace `nix-repl` with the newly introduced command `nix repl`.
  In chapter three `nix-repl` was used to demonstrate the installation
  of a package with `nix-env`. I decided to use `nix-index` as demo
  package as I figured this tool to be extremely helpful to locate
  packages by output files.

  The explanation that Nix is not only a tool for package/derivation
  management, but a functional language as well was moved to chapter
  four where the basics of the language were actually covered.

This change is just a first step towards an updated series, in the
future we may want to use even more Nix 2.0 features (such as
`nix-build` vs. `nix build` with `nix log`).

Fixes #89
Possibly supersedes #71
2018-12-08 00:10:40 +01:00
Graham Christensen 353336cc5a
Merge pull request #85 from exyi/master
Fixed typos in 6th and 15th pill
2018-10-20 16:29:09 -04:00
exyi 244a654359
Fixed typo 2018-10-20 18:54:12 +00:00
Graham Christensen 10b509ab15
Merge pull request #84 from exyi/patch-1
Fixed typo in 03-enter-environment.xml
2018-10-10 10:31:54 -04:00
Stanislav Lukeš d10af5b212
Fixed typo in 03-enter-environment.xml 2018-10-10 14:29:34 +00:00
Graham Christensen 78c4e2f753
Merge pull request #83 from baracoder/patch-1
pill 18.1: Fix filename typo
2018-10-01 10:53:52 -04:00
baracoder 227f46a636
pill 18.1: Fix filename typo
There seams to be a typo in the path of the included file: https://nixos.org/nixos/nix-pills/nix-store-paths.html#idm140737315515840

`derivation-simple-contents.xml -> derivation-simple-content.xml`
2018-10-01 16:51:12 +02:00
Graham Christensen db12ca22e2
Merge pull request #82 from alexherbo2/patch-1
Fix typo
2018-09-19 15:51:50 -04:00
Alex Leferry 2 d3f6c61e1e
Fix typo 2018-09-19 21:37:25 +02:00
Jörg Thalheim 30ec55ae80
Merge pull request #77 from Mic92/binutils
fix binutils input in hello-builder
2018-08-22 23:30:47 +01:00
Andreas Rammhold 44ce4cb6d3
Merge branch 'master' into binutils 2018-08-23 00:28:37 +02:00
Graham Christensen 49a4e93ce3
Merge pull request #80 from acowley/darwin-sidebar
Nix on darwin note: use a `<note>` element
2018-08-20 22:18:19 -04:00
Anthony Cowley 4f372ebaf3 Nix on darwin note: use a <note> element
This takes advantage of existing styling support.
2018-08-20 21:46:52 -04:00
Graham Christensen 5520e97546
Merge pull request #79 from acowley/darwin-sidebar
Add a note on adapting content for darwin
2018-08-20 21:07:04 -04:00
Anthony Cowley 5626a121ec Add a note on adapting content for darwin 2018-08-20 20:56:01 -04:00
Jörg Thalheim 33d151066f fix binutils input in hello-builder
fixes #76
2018-08-20 10:20:47 +01:00
Jörg Thalheim cac959638b
Merge pull request #72 from rolfschr/master
Pill 07: Make the input file name explicit.
2018-06-18 10:53:37 +01:00
Rolf Schröder 3fecf6007e Pill 07: Make the input file name explicit. 2018-06-18 09:10:31 +02:00
Jörg Thalheim 219f9f09d9
Merge pull request #69 from jsamsa/master
may -> must as attribute is required to avoid ambiguity
2018-04-27 17:41:14 +01:00
Jason Samsa 64653e731d
may -> must as attribute is required to avoid ambiguity 2018-04-27 11:28:57 -05:00
Jörg Thalheim e9f5967d50
Merge pull request #67 from dudebout/pill-20-buildable
Make pill 20 buildable
2018-04-27 10:45:39 +01:00
Nicolas Dudebout b706fc958b pill 20: make it buildable
+ refer to the old nixpkgs commit in a note but use the current nixpkgs for the
  actual examples
+ add which to the PATH
+ add `unpackPhase = "true";` to satisfy stdenv requirements
+ explain how _PATH and PATH are related
2018-04-12 07:38:14 -04:00
Nicolas Dudebout 5a07abc2b9 pill 20: fix a few typos
+ add a few missing words
+ pick the lowercase spelling for `stdenv` and use it consistenly
+ reword a sentence that I had a hard time understanding
+ fix the path of the second nix expression to be included
2018-04-12 07:02:11 -04:00
John Ericson 3b4f4edbbf Update README.md
Add headings and link to deployed version

Fix #54
2018-04-11 18:46:42 -04:00
John Ericson e5534d4641 Redefine mul to disambiguate
It's not immediately obvious which previous `mul` definition applies,
and is a copy-paste hazard. Staring the block with a `mul = ...` is also
consistent with the other code blocks.

Fixes #46
2018-04-11 18:18:31 -04:00
Jakob Brünker 959526f5f8 change pill 04 to reflect that floating point number now exist 2018-04-11 17:54:54 -04:00
Nicolas Dudebout 4bdce7aa10 fix import issues in pill 20 2018-04-08 23:02:55 -04:00
Nicolas Dudebout a3c3d6d889 fix rename mistake in 02de506 2018-04-08 22:56:34 -04:00
Nicolas Dudebout 3bfd7caf67 fix last pp-aterm instance
The "pp-aterm" was missed while porting this pill from blogpost.com.
2018-04-08 20:48:44 -04:00
Nicolas Dudebout 4360bbcf3a fix mispelling of graphviz 2018-04-07 21:18:30 -04:00
Nicolas Dudebout 02de50625b replace indent with nix show-derivation 2018-04-06 23:30:28 -04:00
John Ericson 6a6a23a6d6
Merge pull request #55 from Mic92/indent
replace non-longer present pp-aterm with indent
2018-03-31 13:27:12 -04:00
Jörg Thalheim 8a968c8590 replace non-longer present pp-aterm with indent
fixes #53
2018-03-31 17:00:18 +01:00
Jörg Thalheim 55f46cd51d
Merge pull request #48 from mwu/master
Minor typos
2018-03-09 17:32:43 +00:00
Jörg Thalheim 482a10b215
Merge branch 'master' into master 2018-03-09 17:06:37 +00:00
John Ericson 9bdd66dd6d
Merge pull request #49 from obsidiansystems/pill-20
Pill 20: Init according 19's teaser
2018-03-09 11:57:35 -05:00
John Ericson 4c513daccd Pill 20: Init according 19's teaser 2018-02-23 19:04:13 -05:00
John Ericson aca2170ce0 Pill 19: Clean up working a 2018-02-23 19:04:13 -05:00
John Ericson 4de6aaea5d Allow *.nix just within subdirectories 2018-02-23 19:04:13 -05:00
Myron Wu 75e7611b16 Minor typos 2018-02-18 14:55:33 -08:00