2022-05-31 15:38:28 +03:00
|
|
|
{
|
|
|
|
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;
|
2022-05-31 15:38:28 +03:00
|
|
|
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
|
|
|
}
|
|
|
|
];
|
2022-05-31 15:38:28 +03:00
|
|
|
})
|
|
|
|
// {
|
|
|
|
# checks = self.packages;
|
|
|
|
};
|
|
|
|
}
|