Skip to content

Commit

Permalink
Fixup throw catch
Browse files Browse the repository at this point in the history
  • Loading branch information
angerman committed Apr 5, 2024
1 parent 7a3a9ff commit e7fec91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pkgconf-nixpkgs-map.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ pkgs:
lookupAttrsIn = x: __mapAttrs (_pname: names:
# The first entry is should be used for the version by allPkgConfigWrapper
# so we need it to be present.
with pkgs.lib; optionals (__length names != 0 && x ? ${__head names})
with lib; optionals (__length names != 0 && x ? ${__head names})
(concatMap
(name: optionals (x ? ${name})
(let p = __tryEval (x.${name}); in optionals p.success p.value))
(let p = __tryEval (x.${name}); in optional p.success p.value))
names));
in lookupAttrsIn pkgs ({
# Based on https://github.com/NixOS/cabal2nix/blob/11c68fdc79461fb74fa1dfe2217c3709168ad752/src/Distribution/Nixpkgs/Haskell/FromCabal/Name.hs#L23
Expand Down

0 comments on commit e7fec91

Please sign in to comment.