dream2nix/examples/haskell_stack-lock/flake.nix

31 lines
628 B
Nix

{
inputs = {
dream2nix.url = "github:nix-community/dream2nix";
src.url = "github:NorfairKing/cabal2json";
src.flake = false;
};
outputs = {
self,
dream2nix,
src,
} @ inp:
(dream2nix.lib.makeFlakeOutputs {
pkgs = dream2nix.inputs.nixpkgs.legacyPackages.x86_64-linux;
source = src;
config.projectRoot = ./.;
settings = [
{
# Optionally, override the compiler version
subsystemInfo.compiler = {
name = "ghc";
version = "8.10.7";
};
}
];
})
// {
# checks = self.packages;
};
}