Skip to content

Commit e7fec91

Browse files
committed
Fixup throw catch
1 parent 7a3a9ff commit e7fec91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/pkgconf-nixpkgs-map.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ pkgs:
1010
lookupAttrsIn = x: __mapAttrs (_pname: names:
1111
# The first entry is should be used for the version by allPkgConfigWrapper
1212
# so we need it to be present.
13-
with pkgs.lib; optionals (__length names != 0 && x ? ${__head names})
13+
with lib; optionals (__length names != 0 && x ? ${__head names})
1414
(concatMap
1515
(name: optionals (x ? ${name})
16-
(let p = __tryEval (x.${name}); in optionals p.success p.value))
16+
(let p = __tryEval (x.${name}); in optional p.success p.value))
1717
names));
1818
in lookupAttrsIn pkgs ({
1919
# Based on https://github.com/NixOS/cabal2nix/blob/11c68fdc79461fb74fa1dfe2217c3709168ad752/src/Distribution/Nixpkgs/Haskell/FromCabal/Name.hs#L23

0 commit comments

Comments
 (0)