From d8a9d8753a1e8cd917f94f0253faebc3a47a3de4 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Thu, 20 Feb 2025 14:32:42 +0100 Subject: [PATCH] chore: Tweak --- default.nix | 5 +---- flake-compat.nix | 11 ++++------- shell.nix | 5 +---- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/default.nix b/default.nix index a3cfc53..78b2a09 100644 --- a/default.nix +++ b/default.nix @@ -1,4 +1 @@ -let - flake = import ./flake-compat.nix; -in -flake.defaultNix.default +(import ./flake-compat.nix).defaultNix.default diff --git a/flake-compat.nix b/flake-compat.nix index 0caced8..bfd5eea 100644 --- a/flake-compat.nix +++ b/flake-compat.nix @@ -1,10 +1,7 @@ let lock = builtins.fromJSON (builtins.readFile ./flake.lock); - flakeCompat = import (fetchTarball { - url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; - sha256 = lock.nodes.flake-compat.locked.narHash; - }); in -flakeCompat { - src = ./.; -} +import (builtins.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 = ./.; } diff --git a/shell.nix b/shell.nix index 332a6c2..2cb468c 100644 --- a/shell.nix +++ b/shell.nix @@ -1,4 +1 @@ -let - flake = import ./flake-compat.nix; -in -flake.shellNix +(import ./flake-compat.nix).shellNix