Skip to content

Commit

Permalink
Remove unused top-level modifier option
Browse files Browse the repository at this point in the history
  • Loading branch information
srid authored and HariAmoor-professional committed Nov 7, 2022
1 parent c494e98 commit db02a0c
Showing 1 changed file with 18 additions and 24 deletions.
42 changes: 18 additions & 24 deletions flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,15 @@ in
modifier = mkOption {
type = functionTo package;
default = drv: drv;
description = "Modifier to be applied to Haskell package before adding to overlay";
description = ''
Modifier to be applied to Haskell package before adding to overlay
Typically you want to use `overrideCabal` to override various
attributes of Cabal project.
For examples on what is possible, see:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/lib/compose.nix
'';
};
};
};
Expand Down Expand Up @@ -90,19 +98,6 @@ in
description = ''Overrides for the Cabal project'';
default = self: super: { };
};
modifier = mkOption {
type = functionTo types.package;
description = ''
Modifier for the Cabal project
Typically you want to use `overrideCabal` to override various
attributes of Cabal project.
For examples on what is possible, see:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/lib/compose.nix
'';
default = drv: drv;
};
buildTools = mkOption {
type = functionTo (types.attrsOf (types.nullOr types.package));
description = ''Build tools for your Haskell package (available only in nix shell).'';
Expand Down Expand Up @@ -223,12 +218,12 @@ in
config.haskellProjects;
in
{
packages =
lib.foldl (x: y: x // y) ({ }) (
lib.mapAttrsToList
(projectName: project:
lib.listToAttrs
(lib.mapAttrsToList
packages = with lib;
mkMerge
(
mapAttrsToList
(projectName: project:
mapAttrs'
(packageName: package: {
name =
# Prefix package names with the project name (unless
Expand All @@ -239,10 +234,9 @@ in
value = package;
})
project.packages
)
)
projects
);
)
projects
);
checks =
lib.mkMerge
(lib.mapAttrsToList
Expand Down

0 comments on commit db02a0c

Please sign in to comment.