Skip to content

Instantly share code, notes, and snippets.

@folivetti
Created April 20, 2022 18:06
Show Gist options
  • Save folivetti/7cf24e89bec4b9e578f069ebc0f82d36 to your computer and use it in GitHub Desktop.
Save folivetti/7cf24e89bec4b9e578f069ebc0f82d36 to your computer and use it in GitHub Desktop.
{
description = "ITEA";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "github:nixos/nixpkgs/master";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
config = {
packageOverrides = pkgs: {
haskell = pkgs.haskell // {
packages = pkgs.haskell.packages // {
ghc = pkgs.haskell.packages.ghc8107.override {
overrides = self: super: {
mltool = pkgs.haskell.lib.dontCheck super.mltool;
};
};
};
};
};
};
pkgs = import nixpkgs {
inherit system config;
};
drv = pkgs.haskell.packages.ghc.callCabal2nixWithOptions "ITEA" ./. "--no-check" {};
in {
defaultPackage = drv;
devShell = drv.env;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment