mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 16:10:14 +00:00
move all files to new nixfmt rfc
This commit is contained in:
@ -8,8 +8,14 @@
|
||||
inputs.nixpkgs.follows = "haskellNix/nixpkgs-unstable";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
outputs = { nixpkgs, flake-utils, haskellNix }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
outputs =
|
||||
{
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
haskellNix,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
overlay = self: _: {
|
||||
hsPkgs = self.haskell-nix.project' rec {
|
||||
@ -25,10 +31,12 @@
|
||||
ormolu = {
|
||||
version = "latest";
|
||||
modules = [
|
||||
({ lib, ... }: {
|
||||
options.nonReinstallablePkgs =
|
||||
lib.mkOption { apply = lib.remove "Cabal"; };
|
||||
})
|
||||
(
|
||||
{ lib, ... }:
|
||||
{
|
||||
options.nonReinstallablePkgs = lib.mkOption { apply = lib.remove "Cabal"; };
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
};
|
||||
@ -47,8 +55,13 @@
|
||||
};
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [ haskellNix.overlay overlay ];
|
||||
overlays = [
|
||||
haskellNix.overlay
|
||||
overlay
|
||||
];
|
||||
};
|
||||
flake = pkgs.hsPkgs.flake { };
|
||||
in flake // { defaultPackage = flake.packages."hello:exe:hello-exe"; });
|
||||
in
|
||||
flake // { defaultPackage = flake.packages."hello:exe:hello-exe"; }
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user