@@ -7,7 +7,7 @@ import Data.Function
77import Data.List
88import Data.Set ( Set )
99import qualified Data.Set as Set
10−import Language.Nix.Identifier ( Identifier(..) )
10+import Language.Nix.Identifier ( Identifier, ident )
1111import Distribution.Nixpkgs.Haskell
1212import Distribution.Nixpkgs.Meta
1313import Distribution.Nixpkgs.Util.Regex ( regsubmatch )
@@ -25,9 +25,9 @@ normalize drv = drv
2525
2626normalizeBuildInfo :: PackageName -> BuildInfo -> BuildInfo
2727normalizeBuildInfo (PackageName pname) bi = bi
28− & haskell . contains (Identifier pname) .~ False
29− & tool . contains (Identifier pname) .~ False
30− & tool %~ normalizeNixBuildTools . Set.filter (\(Identifier n) -> n `notElem` coreBuildTools)
28+ & haskell . contains (set ident pname undefined) .~ False
29+ & tool . contains (set ident pname undefined) .~ False
30+ & tool %~ normalizeNixBuildTools . Set.filter (\n -> n^.ident `notElem` coreBuildTools)
3131
3232 {-
3333 {
@@ -68,7 +68,7 @@ normalizeNixBuildTools :: Set Identifier -> Set Identifier
6868normalizeNixBuildTools = Set.fromList . concatMap buildToolNixName' . Set.toList
6969 where
7070 buildToolNixName' :: Identifier -> [Identifier]
71− buildToolNixName' (Identifier n) = [ Identifier n' | n' <- buildToolNixName n ]
71+ buildToolNixName' n = [ set ident n' undefined | n' <- buildToolNixName (n^.ident) ]
7272
7373-- |Strip any kind of path prefix from maintainer names, filter duplicates, and
7474-- sort the resulting list alphabetically.