diff options
author | 0x4A6F <0x4A6F@users.noreply.github.com> | 2023-03-01 20:51:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-01 19:51:31 +0000 |
commit | e6ff0514301fcebeaccd8a8e9b5fedc4bded220b (patch) | |
tree | 449cda82f4847684807756b883bd06170f8e480b | |
parent | 55d8b36b67749d88efcc304e3cd6d5e356ccd24e (diff) |
nix: add flake-compat (#743)
-rw-r--r-- | default.nix | 10 | ||||
-rw-r--r-- | flake.lock | 17 | ||||
-rw-r--r-- | flake.nix | 4 |
3 files changed, 31 insertions, 0 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 00000000..2cccff28 --- /dev/null +++ b/default.nix @@ -0,0 +1,10 @@ +(import + ( + let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in + fetchTarball { + url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; + sha256 = lock.nodes.flake-compat.locked.narHash; + } + ) + { src = ./.; } +).defaultNix @@ -1,5 +1,21 @@ { "nodes": { + "flake-compat": { + "flake": false, + "locked": { + "lastModified": 1673956053, + "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, "flake-utils": { "locked": { "lastModified": 1676283394, @@ -33,6 +49,7 @@ }, "root": { "inputs": { + "flake-compat": "flake-compat", "flake-utils": "flake-utils", "nixpkgs": "nixpkgs" } @@ -2,6 +2,10 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; flake-utils.url = "github:numtide/flake-utils"; + flake-compat = { + url = "github:edolstra/flake-compat"; + flake = false; + }; }; outputs = { self, |