mirror of
https://github.com/google/ormolu.git
synced 2024-12-03 18:52:19 +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 ];
|
|
};
|
|
}
|