mirror of
https://github.com/ilyakooo0/ormolu.git
synced 2024-09-11 16:36:31 +03:00
6b73283246
* 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.
20 lines
507 B
Nix
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 ];
|
|
};
|
|
}
|
|
|