diff --git a/flake.lock b/flake.lock index ff6e3c6..a27e6f0 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,21 @@ { "nodes": { + "flake-compat": { + "flake": false, + "locked": { + "lastModified": 1641205782, + "narHash": "sha256-4jY7RCWUoZ9cKD8co0/4tFARpWB+57+r1bLLvXNJliY=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "b7547d3eed6f32d06102ead8991ec52ab0a4f1a7", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1642609835, @@ -17,6 +33,7 @@ }, "root": { "inputs": { + "flake-compat": "flake-compat", "nixpkgs": "nixpkgs" } } diff --git a/flake.nix b/flake.nix index bc19d75..88aa205 100644 --- a/flake.nix +++ b/flake.nix @@ -4,7 +4,13 @@ # Nixpkgs / NixOS version to use. inputs.nixpkgs.url = "nixpkgs/nixos-21.11"; - outputs = { self, nixpkgs }: + # flake-compat for default.nix compatibility + inputs.flake-compat = { + url = github:edolstra/flake-compat; + flake = false; + }; + + outputs = { self, nixpkgs, flake-compat }: let # Generate a user-friendly version number.