Skip to content

Commit 648799b

Browse files
authored
Merge pull request #349 from hatch01/master
Add nixfmt-static package
2 parents e879231 + aa83fef commit 648799b

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

default.nix

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,15 @@ let
5656
);
5757
};
5858

59-
build = lib.pipe pkgs.haskellPackages.nixfmt [
59+
haskellBuildPipeline = [
6060
haskell.lib.justStaticExecutables
6161
haskell.lib.dontHaddock
6262
(drv: lib.lazyDerivation { derivation = drv; })
6363
];
6464

65+
build = lib.pipe pkgs.haskellPackages.nixfmt haskellBuildPipeline;
66+
buildStatic = lib.pipe pkgs.pkgsStatic.haskellPackages.nixfmt haskellBuildPipeline;
67+
6568
treefmtEval = (import sources.treefmt-nix).evalModule pkgs {
6669
# Used to find the project root
6770
projectRootFile = ".git/config";
@@ -114,7 +117,10 @@ let
114117
in
115118
build
116119
// {
117-
packages.nixfmt = build;
120+
packages = {
121+
nixfmt = build;
122+
nixfmt-static = buildStatic;
123+
};
118124

119125
inherit pkgs;
120126

0 commit comments

Comments
 (0)