24 lines
733 B
Nix
24 lines
733 B
Nix
|
|
{
|
||
|
|
inputs.haskellNix.url = "github:input-output-hk/haskell.nix";
|
||
|
|
inputs.nixpkgs.follows = "haskellNix/nixpkgs-unstable";
|
||
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||
|
|
outputs = { self, nixpkgs, flake-utils, haskellNix }:
|
||
|
|
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
|
||
|
|
let
|
||
|
|
overlays = [
|
||
|
|
haskellNix.overlay
|
||
|
|
(final: _prev: {
|
||
|
|
hixProject =
|
||
|
|
final.haskell-nix.hix.project {
|
||
|
|
src = ./.;
|
||
|
|
evalSystem = "x86_64-linux";
|
||
|
|
};
|
||
|
|
})
|
||
|
|
];
|
||
|
|
pkgs = import nixpkgs { inherit system overlays; inherit (haskellNix) config; };
|
||
|
|
haskell = pkgs.hixProject.flake { };
|
||
|
|
in
|
||
|
|
haskell
|
||
|
|
);
|
||
|
|
}
|