git.iko.soy/typeable/cabal2nix
on master help sign in
Added core build tools (for hsc2hs).
commitbd3a53c56f9f7bbd6e2721c772cdfe99d886ccc5 authorAndres Loeh <mail@andres-loeh.de> dateMon 8 Aug 2011, 14:07 (15 years ago) parente423fba
2 files changed+8−2
src/Cabal2Nix/CorePackages.hs+6−1 src/Cabal2Nix/Package.hs+2−1
src/Cabal2Nix/CorePackages.hs+6−1
@@ -1,4 +1,4 @@
1−module Cabal2Nix.CorePackages ( corePackages ) where
1+module Cabal2Nix.CorePackages ( corePackages, coreBuildTools ) where
22
33-- | List of packages shipped with ghc and therefore at the moment not in
44-- nixpkgs. This should probably be configurable at first. Later, it might
@@ -32,3 +32,8 @@ corePackages = [
3232 "time",
3333 "unix"
3434 ]
35+
36+coreBuildTools :: [String]
37+coreBuildTools = [
38+ "hsc2hs"
39+ ]
src/Cabal2Nix/Package.hs+2−1
@@ -105,7 +105,8 @@ showNixPkg (Pkg name ver sha256 url desc lic deps tools libs platforms maintaine
105105 (nub $ sort $ map toNixName $
106106 filter (`notElem` (name : corePackages)) $ map unDep deps)
107107 pkgBuildTools :: [String]
108− pkgBuildTools = nub $ sort $ map toNixName $ map unDep tools
108+ pkgBuildTools = nub $ sort $ map toNixName $
109+ filter (`notElem` coreBuildTools) $ map unDep tools
109110
110111
111112cabal2nix :: GenericPackageDescription -> PkgSHA256 -> PkgPlatforms -> PkgMaintainers -> Pkg