dream2nix/examples/haskell_stack-lock/flake.nix

31 lines
643 B
Nix
Raw Normal View History

{
inputs = {
dream2nix.url = "github:nix-community/dream2nix";
src.url = "github:NorfairKing/cabal2json";
src.flake = false;
};
outputs = {
self,
dream2nix,
src,
2022-06-03 16:13:51 +03:00
} @ inp:
(dream2nix.lib.makeFlakeOutputs {
pkgs = dream2nix.inputs.nixpkgs.legacyPackages.x86_64-linux;
source = src;
2022-06-03 16:13:51 +03:00
config.projectRoot = ./.;
2022-08-18 21:55:28 +03:00
settings = [
{
2022-08-25 21:38:56 +03:00
# A compiler must be specified for stack lock based builds
subsystemInfo.compiler = {
name = "ghc";
version = "8.10.7";
};
2022-08-18 21:55:28 +03:00
}
];
})
// {
# checks = self.packages;
};
}