Matthias Andreas Benkard | f1683f5 | 2021-08-24 20:41:41 +0200 | [diff] [blame^] | 1 | # This file exists for legacy Nix installs (nix-build & nix-env) |
| 2 | # https://nixos.wiki/wiki/Flakes#Using_flakes_project_from_a_legacy_Nix |
| 3 | # You generally do *not* have to modify this ever. |
| 4 | |
| 5 | { pkgs ? import <nixpkgs> { }, nix-gitignore ? pkgs.nix-gitignore }: |
| 6 | |
| 7 | (import |
| 8 | ( |
| 9 | let |
| 10 | lock = builtins.fromJSON (builtins.readFile ./flake.lock); |
| 11 | in |
| 12 | fetchTarball { |
| 13 | url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; |
| 14 | sha256 = lock.nodes.flake-compat.locked.narHash; |
| 15 | } |
| 16 | ) |
| 17 | { |
| 18 | src = nix-gitignore.gitignoreSource [ ] ./.; |
| 19 | }).defaultNix |