blob: fb53cde8b8029a68f2d1b263616ef38d6334a378 [file] [log] [blame]
Matthias Andreas Benkardf1683f52021-08-24 20:41:41 +02001# 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