dream2nix/examples/haskell_stack-lock/flake.nix

28 lines
581 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 = [
{
# A ghc version must be specified for stack lock based builds
subsystemInfo.ghcVersion = 8107;
}
];
})
// {
# checks = self.packages;
};
}