Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
presentation-slides
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
nix-tutorial
presentation-slides
Commits
42c4881e
Commit
42c4881e
authored
5 years ago
by
Faure Adrien
Browse files
Options
Downloads
Patches
Plain Diff
[TutoNix]dim. juin 23 20:48:39 CEST 2019
parent
ac9ad174
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
slides.pdf
+0
-0
0 additions, 0 deletions
slides.pdf
slides.tex
+32
-3
32 additions, 3 deletions
slides.tex
with
32 additions
and
3 deletions
slides.pdf
+
0
−
0
View file @
42c4881e
No preview for this file type
This diff is collapsed.
Click to expand it.
slides.tex
+
32
−
3
View file @
42c4881e
...
...
@@ -480,14 +480,43 @@ The result of the build action is automatically placed into the nix store.
\begin{enumerate}
\item
Applies functional paradigm to package management system.
\item
Packages are derivations, written in Nix lang.
\item
Packages are
called
derivations, written in Nix lang.
\item
The list of existing packages are into NixPkgs repository.
\item
All build package are located into the store.
\item
A built derivation is located to the nix store into a dedicated directory.
\item
The folder name is generated from a hash of its inputs and its nix file.
\end{enumerate}
\end{frame}
\begin{frame}
{
Why it is reproducible ?
}
\begin{frame}
[fragile]
{
Why it is reproducible ?
}
Writting a package for your application requires to state down every dependencies.
\\
\vspace
{
1em
}
The build process of your application is also incorporated within the derivation.
\end{frame}
\begin{frame}
[fragile]
{
Why it is reproducible ?
}
\vspace
{
1em
}
The source of your application can be fixed:
\begin{lstlisting}
[language=Nix,basicstyle=
\small
]
src = fetgit
{
url = "https://gitlab.com/me/chord.tar.gz";
sha256 = "1h2jgq5pspyiskffq777nhi5rf0y8h...";
}
;
\end{lstlisting}
\vspace
{
1em
}
The source of the Nixpkgs repository can be pinned.
\begin{lstlisting}
[language=Nix,basicstyle=
\small
]
{
pkgs ? import ( fetchTarball
"https://github.com/achive/e860b629bc0d1f9b.tar.gz" )
)
}
:
\end{lstlisting}
\end{frame}
...
...
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