2 inputs.nixpkgs.url = "flake:nixpkgs";
5 lib = inputs.nixpkgs.lib;
6 forAllSystems = f: lib.genAttrs lib.systems.flakeExposed (system: f rec {
8 pkgs = inputs.nixpkgs.legacyPackages.${system};
9 haskellPackages = pkgs.haskellPackages.extend (with pkgs.haskell.lib; hfinal: hsuper: {
10 ${pkg} = buildFromSdist (hfinal.callCabal2nix pkg ./. {});
15 defaultPackage = forAllSystems ({haskellPackages, ...}: haskellPackages.${pkg});
17 devShell = forAllSystems ({pkgs, haskellPackages, ...}:
18 haskellPackages.shellFor {
19 packages = ps: [ ps.${pkg} ];
21 haskellPackages.cabal-install
23 haskellPackages.haskell-language-server