mirror of
https://github.com/google/ormolu.git
synced 2024-09-11 08:05:24 +03:00
19 lines
506 B
Nix
19 lines
506 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 ];
|
|
};
|
|
}
|