File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
cabal2nix/src/Distribution/Nixpkgs/Haskell/FromCabal Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import Control.Lens
66import qualified Data.Set as Set
77import Data.String
88import Distribution.Nixpkgs.Haskell
9+ import Distribution.Nixpkgs.Haskell.FromCabal.Name (toNixName )
910import Distribution.Nixpkgs.Meta
1011import Distribution.Package
1112import Language.Nix hiding ( quote )
@@ -21,8 +22,8 @@ normalize drv = drv
2122
2223normalizeBuildInfo :: PackageName -> BuildInfo -> BuildInfo
2324normalizeBuildInfo pname bi = bi
24- & haskell %~ Set. filter (\ b -> view localName b /= fromString (unPackageName pname) )
25- & tool %~ Set. filter (\ b -> view localName b /= fromString (unPackageName pname) )
25+ & haskell %~ Set. filter (\ b -> view localName b /= toNixName pname)
26+ & tool %~ Set. filter (\ b -> view localName b /= toNixName pname)
2627
2728normalizeMeta :: Meta -> Meta
2829normalizeMeta meta = meta
You can’t perform that action at this time.
0 commit comments