From 57b31188f44e28b895adb75f5e69fd949c3a7bf4 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Fri, 17 Jun 2022 18:08:16 -0400 Subject: [PATCH] Simplify shell.nix using builtins.getFlake Inspired by: https://github.com/hercules-ci/hage/commit/27322b4d38f0e55ef3dabb7af4cd241c92e0a05a --- shell.nix | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/shell.nix b/shell.nix index a0c9174..8745f50 100644 --- a/shell.nix +++ b/shell.nix @@ -1,12 +1 @@ -# TODO: Remove this after https://github.com/srid/haskell-template/issues/23 - -(import - ( - fetchTarball { - url = "https://github.com/edolstra/flake-compat/archive/b4a34015c698c7793d592d66adbab377907a2be8.tar.gz"; - sha256 = "sha256-Z+s0J8/r907g149rllvwhb4pKi8Wam5ij0st8PwAh+E="; - } - ) - { - src = ./.; - }).shellNix +(builtins.getFlake ("git+file://" + toString ./.)).devShells.${builtins.currentSystem}.default