├── README.md ├── flake.lock └── flake.nix /README.md: -------------------------------------------------------------------------------- 1 | # get-flake 2 | 3 | `builtins.getFlake` without the restrictions. 4 | 5 | ## Usage 6 | 7 | To use, add the following to your `flake.nix`: 8 | 9 | ```nix 10 | inputs.get-flake.url = "github:ursi/get-flake"; 11 | ``` 12 | 13 | Afterwards, you can use it to call a flake from anywhere, including a parent directory, as follows: 14 | 15 | ```nix 16 | parent-flake = get-flake ../.; 17 | ``` 18 | -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- 1 | { 2 | "nodes": { 3 | "flake-compat": { 4 | "locked": { 5 | "lastModified": 1733328505, 6 | "narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=", 7 | "owner": "edolstra", 8 | "repo": "flake-compat", 9 | "rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec", 10 | "type": "github" 11 | }, 12 | "original": { 13 | "owner": "edolstra", 14 | "repo": "flake-compat", 15 | "type": "github" 16 | } 17 | }, 18 | "root": { 19 | "inputs": { 20 | "flake-compat": "flake-compat" 21 | } 22 | } 23 | }, 24 | "root": "root", 25 | "version": 7 26 | } 27 | -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- 1 | { inputs.flake-compat.url = "github:edolstra/flake-compat"; 2 | outputs = inputs: 3 | { __functor = _: src: (import inputs.flake-compat { inherit src; }).outputs; }; 4 | } 5 | --------------------------------------------------------------------------------