git.iko.soy/typeable/cabal2nix
on master help sign in
hackage2nix.hs: find 'llvm' related system packages in 'self.llvmPackages'
22a73edPeter Simons
src/hackage2nix.hs+1
@@ -207,6 +207,7 @@ resolveNixpkgsOrHackageAttribute nixpkgs hackage name
207
207
208resolveNixpkgsAttribute :: Nixpkgs -> Attribute -> Maybe Path
208resolveNixpkgsAttribute :: Nixpkgs -> Attribute -> Maybe Path
209resolveNixpkgsAttribute nixpkgs name
209resolveNixpkgsAttribute nixpkgs name
210+ | name `elem` ["clang","lldb","llvm"] = Just ["self","llvmPackages"]
210 | Just paths <- Map.lookup name nixpkgs = getShortestPath (Set.toList (paths `Set.intersection` goodScopes))
211 | Just paths <- Map.lookup name nixpkgs = getShortestPath (Set.toList (paths `Set.intersection` goodScopes))
211 | otherwise = Nothing
212 | otherwise = Nothing
212 where
213 where