We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e879231 + aa83fef commit 648799bCopy full SHA for 648799b
1 file changed
default.nix
@@ -56,12 +56,15 @@ let
56
);
57
};
58
59
- build = lib.pipe pkgs.haskellPackages.nixfmt [
+ haskellBuildPipeline = [
60
haskell.lib.justStaticExecutables
61
haskell.lib.dontHaddock
62
(drv: lib.lazyDerivation { derivation = drv; })
63
];
64
65
+ build = lib.pipe pkgs.haskellPackages.nixfmt haskellBuildPipeline;
66
+ buildStatic = lib.pipe pkgs.pkgsStatic.haskellPackages.nixfmt haskellBuildPipeline;
67
+
68
treefmtEval = (import sources.treefmt-nix).evalModule pkgs {
69
# Used to find the project root
70
projectRootFile = ".git/config";
@@ -114,7 +117,10 @@ let
114
117
in
115
118
build
116
119
// {
- packages.nixfmt = build;
120
+ packages = {
121
+ nixfmt = build;
122
+ nixfmt-static = buildStatic;
123
+ };
124
125
inherit pkgs;
126
0 commit comments