From 6bd9f1715fc2e1d4548046e3ce2bd91d64625a1e Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Thu, 29 Jul 2021 16:47:54 +1000 Subject: convert nix expressions to flakes --- shell.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix index 40ee189..339bb5d 100644 --- a/shell.nix +++ b/shell.nix @@ -1,12 +1,13 @@ -let - pkgs = import { }; +{ mkShell, ghc, haskell, biohazardSrc }: - ghc = with pkgs.haskell.lib; - pkgs.ghc.withPackages (pkgs: - with pkgs; - [ +let + ghcP = with haskell.lib; + ghc.withPackages (pkgs: + with pkgs; [ hlint - (doJailbreak (markUnbroken - (biohazard.overrideAttrs (_: { patches = [ ./biohazard.patch ]; })))) + (doJailbreak (markUnbroken (biohazard.overrideAttrs (_: { + src = biohazardSrc; + patches = [ ./biohazard.patch ]; + })))) ]); -in pkgs.mkShell { buildInputs = [ ghc ]; } +in mkShell { buildInputs = [ ghcP ]; } -- cgit v1.2.3