mirror of
https://github.com/google/ormolu.git
synced 2024-12-02 23:43:34 +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 ];
|
|
};
|
|
}
|