Created
April 20, 2022 18:06
-
-
Save folivetti/7cf24e89bec4b9e578f069ebc0f82d36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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