Skip to content

Latest commit

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

$ cd subdir/
$ nix repl Welcome to Nix 2.8.1. Type :? for help.
nix-repl> let flake = builtins.getFlake (toString ./.); in builtins.readFile ("${flake.self-as-an-output}/test.txt")
copying '/home/aaron/flakes-test/subdir'"this is a text file at the deeper inside of my git repository\n"
nix-repl> :lf .# Added 12 variables.
nix-repl> builtins.readFile ("${outputs.self-as-an-output}/test.txt") "this is a text file at the root of my git repository\n"

why do i get different results? 🤔

About

experimenting around with `self` in flakes

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages