Closed aleeusgr closed 2 years ago
nix profile install nixpkgs#ripgrep
NobbZ — Today at 17:33 It inherits the same problems that come from imperative package management. [17:33] It doesn't have the weird version handling that nix-env has though. So it is better, but I wouldn't use it either. [17:33] You can as well just use apt or brew then, doesn't make any difference…
https://tonyfinn.com/blog/nix-from-first-principles-flake-edition/nix-4-just-enough-nixlang/
nix repl
path datatype
set ~ dict
Functional P, currying
Let, With, Inherit
It only exists for the Nix package manager: to describe packages and configurations as well as their variants and compositions. It is not intended for general purpose use.
There is no notion of executing sequential steps. Dependencies between operations are established only through data.
Values cannot change during computation. Functions always produce the same output if their input does not change.
Functions are like any other value. Functions can be assigned to names, taken as arguments, or returned by functions.
Expressions are only evaluated when their value is needed.
Type errors are only detected when expressions are evaluated.
A Nix derivation is a special type of set
created from the derivation function
which describes how to obtain and build a package
.
https://tonyfinn.com/blog/nix-from-first-principles-flake-edition/