⛩️ Powerful yet Minimal Nix Dependency Manager
flake
flakes
home-manager
nixos
go
nix
dependency
dependencies
1# Examples
2
3If Nixpkgs ever goes out of date in these examples, just run `yae update`!
4
5## [Nixpkgs](https://github.com/Fuwn/yae/tree/main/examples/nixpkgs)
6
7This example showcases adding the Nixpkgs unstable branch as a Yae source,
8consuming it within an example flake, and mirroring the `hello` package from
9Nixpkgs as a flake output.
10
11Note that the flake has no inputs. This is because Yae directly manages the
12Nixpkgs source.
13
14This example is extremely useful and is intended be adapted to suite the specific
15needs of flake-less Nix configurations, like classic Nix shells and flake-less system
16configurations.
17
18## [Nixpkgs Simple](https://github.com/Fuwn/yae/tree/main/examples/nixpkgs-simple)
19
20This example is functionally identical to the Nixpkgs example, with the exception
21that it utilises `builtins.currentSystem` to populate the `nixpkgs.system`
22attribute, requiring the `--impure` command-line flag.
23
24This example is purely for the sake of example, since in a real-world scenario,
25you'd likely use something similar to [flake-utils](https://github.com/numtide/flake-utils)
26for multi-system output management and populating the `nixpkgs.system` attribute.