diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..2cccff2 --- /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 diff --git a/flake.lock b/flake.lock index f6fe38a..2cc33da 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,21 @@ { "nodes": { + "flake-compat": { + "flake": false, + "locked": { + "lastModified": 1648199409, + "narHash": "sha256-JwPKdC2PoVBkG6E+eWw3j6BMR6sL3COpYWfif7RVb8Y=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "64a525ee38886ab9028e6f61790de0832aa3ef03", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, "flake-utils": { "locked": { "lastModified": 1648297722, @@ -33,6 +49,7 @@ }, "root": { "inputs": { + "flake-compat": "flake-compat", "flake-utils": "flake-utils", "nixpkgs": "nixpkgs" } diff --git a/flake.nix b/flake.nix index a92d6fe..55618d9 100644 --- a/flake.nix +++ b/flake.nix @@ -3,13 +3,17 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11"; + flake-compat = { + url = github:edolstra/flake-compat; + flake = false; + }; flake-utils = { url = "github:numtide/flake-utils"; inputs.nixpkgs.follows = "nixpkgs"; }; }; - outputs = { self, nixpkgs, flake-utils }: + outputs = { self, nixpkgs, flake-compat, flake-utils }: let name = "fused-effects-exceptions"; in diff --git a/result b/result deleted file mode 120000 index f8dc8ae..0000000 --- a/result +++ /dev/null @@ -1 +0,0 @@ -/nix/store/k0gb2rky5g5p3n9fgy637swkwd5szxdk-fused-effects-exceptions-1.1.0.2 \ No newline at end of file