mirror of
https://github.com/input-output-hk/foliage.git
synced 2024-11-26 02:46:18 +03:00
51 lines
1.5 KiB
Nix
51 lines
1.5 KiB
Nix
{
|
|
description = "Foliage is a tool to create custom Haskell package repositories, in a fully reproducible way.";
|
|
|
|
inputs = {
|
|
nixpkgs.follows = "haskell-nix/nixpkgs-unstable";
|
|
haskell-nix.url = "github:input-output-hk/haskell.nix";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils, haskell-nix }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; inherit (haskell-nix) config; overlays = [haskell-nix.overlay]; };
|
|
project = pkgs.haskell-nix.cabalProject {
|
|
src = ./.;
|
|
compiler-nix-name = "ghc8107";
|
|
shell.tools = {
|
|
cabal = {};
|
|
hlint = {};
|
|
haskell-language-server = {};
|
|
};
|
|
shell.buildInputs = with pkgs; [
|
|
nixpkgs-fmt
|
|
fsatrace
|
|
];
|
|
modules = [{
|
|
packages.foliage.components.exes.foliage.dontStrip = false;
|
|
}];
|
|
};
|
|
in {
|
|
packages.default = project.foliage.components.exes.foliage;
|
|
devShell = pkgs.mkShell {
|
|
name = "foliage-dev-shell";
|
|
buildInputs = with pkgs; [
|
|
fsatrace
|
|
];
|
|
};
|
|
});
|
|
|
|
nixConfig = {
|
|
extra-substituters = [
|
|
"https://cache.iog.io"
|
|
"https://foliage.cachix.org"
|
|
];
|
|
extra-trusted-public-keys = [
|
|
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
|
|
"foliage.cachix.org-1:kAFyYLnk8JcRURWReWZCatM9v3Rk24F5wNMpEj14Q/g="
|
|
];
|
|
};
|
|
}
|