@@ -7,7 +7,7 @@ import Data.Function
7import Data.List
7import Data.List
8import Data.Set ( Set )
8import Data.Set ( Set )
9import qualified Data.Set as Set
9import qualified Data.Set as Set
10−import Language.Nix.Identifier ( Identifier(..) )
10+import Language.Nix.Identifier ( Identifier, ident )
11import Distribution.Nixpkgs.Haskell
11import Distribution.Nixpkgs.Haskell
12import Distribution.Nixpkgs.Meta
12import Distribution.Nixpkgs.Meta
13import Distribution.Nixpkgs.Util.Regex ( regsubmatch )
13import Distribution.Nixpkgs.Util.Regex ( regsubmatch )
@@ -25,9 +25,9 @@ normalize drv = drv
26normalizeBuildInfo :: PackageName -> BuildInfo -> BuildInfo
26normalizeBuildInfo :: PackageName -> BuildInfo -> BuildInfo
27normalizeBuildInfo (PackageName pname) bi = bi
27normalizeBuildInfo (PackageName pname) bi = bi
28− & haskell . contains (Identifier pname) .~ False
28+ & haskell . contains (set ident pname undefined) .~ False
29− & tool . contains (Identifier pname) .~ False
29+ & tool . contains (set ident pname undefined) .~ False
30− & tool %~ normalizeNixBuildTools . Set.filter (\(Identifier n) -> n `notElem` coreBuildTools)
30+ & tool %~ normalizeNixBuildTools . Set.filter (\n -> n^.ident `notElem` coreBuildTools)
@@ -68,7 +68,7 @@ normalizeNixBuildTools :: Set Identifier -> Set Identifier
68normalizeNixBuildTools = Set.fromList . concatMap buildToolNixName' . Set.toList
68normalizeNixBuildTools = Set.fromList . concatMap buildToolNixName' . Set.toList
70 buildToolNixName' :: Identifier -> [Identifier]
70 buildToolNixName' :: Identifier -> [Identifier]
71− buildToolNixName' (Identifier n) = [ Identifier n' | n' <- buildToolNixName n ]
71+ buildToolNixName' n = [ set ident n' undefined | n' <- buildToolNixName (n^.ident) ]
73-- |Strip any kind of path prefix from maintainer names, filter duplicates, and
73-- |Strip any kind of path prefix from maintainer names, filter duplicates, and
74-- sort the resulting list alphabetically.
74-- sort the resulting list alphabetically.