chore(nix): formatted outputs.nix
This commit is contained in:
parent
3497666514
commit
a7c888a2d5
65
outputs.nix
65
outputs.nix
|
@ -1,31 +1,34 @@
|
||||||
{ self, nixpkgs, utils, haskellNix }@ inputs:
|
{
|
||||||
utils.lib.eachDefaultSystem (system:
|
self,
|
||||||
let
|
nixpkgs,
|
||||||
overlay = self: _: {
|
utils,
|
||||||
hsPkgs =
|
haskellNix,
|
||||||
self.haskell-nix.project' rec {
|
} @ inputs:
|
||||||
src = ./.;
|
utils.lib.eachDefaultSystem (
|
||||||
compiler-nix-name = "ghc928";
|
system: let
|
||||||
};
|
overlay = self: _: {
|
||||||
};
|
hsPkgs = self.haskell-nix.project' rec {
|
||||||
pkgs = import nixpkgs {
|
src = ./.;
|
||||||
inherit system;
|
compiler-nix-name = "ghc944";
|
||||||
overlays = [
|
};
|
||||||
haskellNix.overlay
|
};
|
||||||
overlay
|
pkgs = import nixpkgs {
|
||||||
];
|
inherit system;
|
||||||
};
|
overlays = [
|
||||||
flake = pkgs.hsPkgs.flake { };
|
haskellNix.overlay
|
||||||
in
|
overlay
|
||||||
{
|
];
|
||||||
packages.default = flake.packages."skeleton-web:exe:site";
|
};
|
||||||
apps.default = {
|
flake = pkgs.hsPkgs.flake {};
|
||||||
type = "app";
|
in {
|
||||||
program = "${flake.packages."skeleton-web:exe:site"}/bin/site";
|
packages.default = flake.packages."skeleton-web:exe:site";
|
||||||
};
|
apps.default = {
|
||||||
# Overwrite devShells being inported from haskell-nix
|
type = "app";
|
||||||
devShells.default = pkgs.callPackage ./shell.nix {
|
program = "${flake.packages."skeleton-web:exe:site"}/bin/site";
|
||||||
inherit (haskellNix.legacyPackages."${pkgs.system}") stylish-haskell;
|
};
|
||||||
};
|
# Overwrite devShells being inported from haskell-nix
|
||||||
}
|
devShells.default = pkgs.callPackage ./shell.nix {
|
||||||
)
|
inherit (haskellNix.legacyPackages."${pkgs.system}") stylish-haskell;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue