Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aanderse/flakes
experimenting around with `self` in flakes
https://github.com/aanderse/flakes
Last synced: 1 day ago
JSON representation
experimenting around with `self` in flakes
- Host: GitHub
- URL: https://github.com/aanderse/flakes
- Owner: aanderse
- Created: 2022-10-26T17:56:32.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-26T18:21:26.000Z (about 2 years ago)
- Last Synced: 2023-03-05T00:26:12.117Z (almost 2 years ago)
- Language: Nix
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
$ 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? :thinking: