mirror of
https://github.com/quantum9Innovation/suntheme.git
synced 2024-11-28 11:03:50 -08:00
54 lines
1.4 KiB
Nix
54 lines
1.4 KiB
Nix
|
{
|
||
|
description = "Flake for suntheme's development environment and builds";
|
||
|
|
||
|
inputs.haskellNix.url = "github:input-output-hk/haskell.nix";
|
||
|
inputs.nixpkgs.follows = "haskellNix/nixpkgs-unstable";
|
||
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||
|
outputs = {
|
||
|
self,
|
||
|
nixpkgs,
|
||
|
flake-utils,
|
||
|
haskellNix,
|
||
|
}: let
|
||
|
supportedSystems = [
|
||
|
"x86_64-linux"
|
||
|
"x86_64-darwin"
|
||
|
"aarch64-linux"
|
||
|
"aarch64-darwin"
|
||
|
];
|
||
|
in
|
||
|
flake-utils.lib.eachSystem supportedSystems (system: let
|
||
|
overlays = [
|
||
|
haskellNix.overlay
|
||
|
(final: prev: {
|
||
|
suntheme = final.haskell-nix.project' {
|
||
|
src = ./.;
|
||
|
compiler-nix-name = "ghc982";
|
||
|
shell.tools = {
|
||
|
cabal = {};
|
||
|
hlint = {};
|
||
|
haskell-language-server = {};
|
||
|
};
|
||
|
};
|
||
|
})
|
||
|
];
|
||
|
pkgs = import nixpkgs {
|
||
|
inherit system overlays;
|
||
|
inherit (haskellNix) config;
|
||
|
};
|
||
|
flake = pkgs.suntheme.flake {};
|
||
|
in
|
||
|
flake
|
||
|
// {
|
||
|
formatter = pkgs.alejandra;
|
||
|
|
||
|
packages.default = flake.packages."suntheme:exe:suntheme";
|
||
|
});
|
||
|
|
||
|
nixConfig = {
|
||
|
extra-substituters = ["https://cache.iog.io"];
|
||
|
extra-trusted-public-keys = ["hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="];
|
||
|
allow-import-from-derivation = "true";
|
||
|
};
|
||
|
}
|