From a7c888a2d5f784686b42509d17356cdd99b642d5 Mon Sep 17 00:00:00 2001 From: Fiscal Velvet Poet Date: Tue, 13 Aug 2024 19:23:43 +1000 Subject: [PATCH] chore(nix): formatted outputs.nix --- outputs.nix | 65 ++++++++++++++++++++++++++++------------------------- 1 file changed, 34 insertions(+), 31 deletions(-) diff --git a/outputs.nix b/outputs.nix index faec93c..2726548 100644 --- a/outputs.nix +++ b/outputs.nix @@ -1,31 +1,34 @@ -{ self, nixpkgs, utils, haskellNix }@ inputs: - utils.lib.eachDefaultSystem (system: - let - overlay = self: _: { - hsPkgs = - self.haskell-nix.project' rec { - src = ./.; - compiler-nix-name = "ghc928"; - }; - }; - pkgs = import nixpkgs { - inherit system; - overlays = [ - haskellNix.overlay - overlay - ]; - }; - flake = pkgs.hsPkgs.flake { }; - in - { - packages.default = flake.packages."skeleton-web:exe:site"; - apps.default = { - type = "app"; - program = "${flake.packages."skeleton-web:exe:site"}/bin/site"; - }; - # Overwrite devShells being inported from haskell-nix - devShells.default = pkgs.callPackage ./shell.nix { - inherit (haskellNix.legacyPackages."${pkgs.system}") stylish-haskell; - }; - } - ) +{ + self, + nixpkgs, + utils, + haskellNix, +} @ inputs: +utils.lib.eachDefaultSystem ( + system: let + overlay = self: _: { + hsPkgs = self.haskell-nix.project' rec { + src = ./.; + compiler-nix-name = "ghc944"; + }; + }; + pkgs = import nixpkgs { + inherit system; + overlays = [ + haskellNix.overlay + overlay + ]; + }; + flake = pkgs.hsPkgs.flake {}; + in { + packages.default = flake.packages."skeleton-web:exe:site"; + apps.default = { + type = "app"; + program = "${flake.packages."skeleton-web:exe:site"}/bin/site"; + }; + # Overwrite devShells being inported from haskell-nix + devShells.default = pkgs.callPackage ./shell.nix { + inherit (haskellNix.legacyPackages."${pkgs.system}") stylish-haskell; + }; + } +)