Skip to content

Commit

Permalink
fix: support older nixpkgs
Browse files Browse the repository at this point in the history
lib.attrsets.removeAttrs is only available in newer nixpkgs
  • Loading branch information
srid committed Apr 25, 2024
1 parent 56c45af commit 2ee7904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nix/modules/project/settings/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ in
# In future, we can refactor this as part of https://github.com/srid/haskell-flake/issues/285
# NOTE: removeReferencesTo must apply *before* buildFromSdist, because the
# later appears it fuck up the former otherwise.
impl = lib.attrsets.removeAttrs cfg.impl [ "buildFromSdist" "removeReferencesTo" ];
impl = builtins.removeAttrs cfg.impl [ "buildFromSdist" "removeReferencesTo" ];
fns = lib.attrValues impl ++ [ cfg.impl.buildFromSdist cfg.impl.removeReferencesTo ];
in
lib.pipe super.${name} (
Expand Down

0 comments on commit 2ee7904

Please sign in to comment.