hackage2nix.hs: find 'llvm' related system packages in 'self.llvmPackages'
This patch takes advantage of the compiler-specific symbol provided by
https://github.com/NixOS/nixpkgs/pull/6713.
commit22a73ed2766e5dc49054ce4a8d6b799aa6215ccb
authorPeter Simons <simons@cryp.to>
dateWed 25 Mar 2015, 20:30 (12 years ago)
parent29ab5f6
src/hackage2nix.hs+1
@@ -207,6 +207,7 @@ resolveNixpkgsOrHackageAttribute nixpkgs hackage name
207207
208208resolveNixpkgsAttribute :: Nixpkgs -> Attribute -> Maybe Path
209209resolveNixpkgsAttribute nixpkgs name
210+ | name `elem` ["clang","lldb","llvm"] = Just ["self","llvmPackages"]
210211 | Just paths <- Map.lookup name nixpkgs = getShortestPath (Set.toList (paths `Set.intersection` goodScopes))
211212 | otherwise = Nothing
212213 where