Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nora Puchreiner
Nix
Commits
7b09e9f2
Commit
7b09e9f2
authored
11 years ago
by
Eelco Dolstra
Browse files
Options
Downloads
Patches
Plain Diff
Add hacking notes plus a script for running nix-shell
parent
15e5ac80
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dev-shell
+12
-0
12 additions, 0 deletions
dev-shell
doc/manual/hacking.xml
+41
-0
41 additions, 0 deletions
doc/manual/hacking.xml
doc/manual/manual.xml
+1
-0
1 addition, 0 deletions
doc/manual/manual.xml
with
54 additions
and
0 deletions
dev-shell
0 → 100755
+
12
−
0
View file @
7b09e9f2
#! /bin/sh
s
=
$(
type
-p
nix-shell
)
exec
$s
release.nix
-A
tarball
--command
"
export NIX_REMOTE=daemon
export NIX_PATH='
$NIX_PATH
'
export NIX_BUILD_SHELL=
$(
type
-p
bash
)
export c=
\$
configureFlags
exec
$s
release.nix -A build.x86_64-linux --exclude tarball --command '
configureFlags+=
\"
\$
c --prefix=
$(
pwd
)
/inst --sysconfdir=
$(
pwd
)
/inst/etc
\"
return
'"
\
"
$@
"
This diff is collapsed.
Click to expand it.
doc/manual/hacking.xml
0 → 100644
+
41
−
0
View file @
7b09e9f2
<appendix
xmlns=
"http://docbook.org/ns/docbook"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:id=
"chap-hacking"
>
<title>
Hacking
</title>
<para>
This section provides some notes on how to hack on Nix. To get
the latest version of Nix from GitHub:
<screen>
$ git clone git://github.com/NixOS/nix.git
$ cd hydra
</screen>
</para>
<para>
To build it and its dependencies:
<screen>
$ nix-build release.nix -A build.x86_64-linux
</screen>
</para>
<para>
To build all dependencies and start a shell in which all
environment variables are set up so that those dependencies can be
found:
<screen>
$ ./dev-shell
</screen>
To build Nix itself in this shell:
<screen>
[nix-shell]$ ./bootstrap
[nix-shell]$ configurePhase
[nix-shell]$ make
</screen>
To test it:
<screen>
[nix-shell]$ make install
[nix-shell]$ make installcheck
</screen>
</para>
</appendix>
This diff is collapsed.
Click to expand it.
doc/manual/manual.xml
+
1
−
0
View file @
7b09e9f2
...
@@ -73,6 +73,7 @@
...
@@ -73,6 +73,7 @@
<xi:include
href=
"troubleshooting.xml"
/>
<xi:include
href=
"troubleshooting.xml"
/>
<!-- <xi:include href="bugs.xml" /> -->
<!-- <xi:include href="bugs.xml" /> -->
<xi:include
href=
"glossary.xml"
/>
<xi:include
href=
"glossary.xml"
/>
<xi:include
href=
"hacking.xml"
/>
<appendix>
<appendix>
<title>
Nix Release Notes
</title>
<title>
Nix Release Notes
</title>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment