ormolu/default.nix
Luc Tielen 6b73283246 Clean nix configuration
* Point to more recent nixpkgs commit. This fixes build issue with python
  3.7.3 (only on darwin?).

* Separate shell.nix and default.nix. This is so that lorri can be used for
  development.

* Add nix output to .gitignore.

* Format *.nix using nixfmt.

* Use gitignore for filtering files in nix derivation.
2019-06-23 19:17:05 +02:00

20 lines
507 B
Nix

let
pkgs = import ./nix/nixpkgs;
gitignoreSource = import ./nix/gitignore { inherit (pkgs) lib; };
compiler = "ghc864";
source = gitignoreSource ./.;
haskellPackages = pkgs.haskell.packages.${compiler}.override {
overrides = (self: super:
super // {
"ormolu" = super.callCabal2nix "ormolu" source { };
});
};
in {
ormolu = haskellPackages.ormolu;
ormolu-shell = haskellPackages.shellFor {
packages = ps: [ ps.ormolu ];
buildInputs = [ pkgs.cabal-install ];
};
}