git.iko.soy/typeable/cabal2nix
on master help sign in
Hackage4Nix.hs: ensure that 'andres' and 'simons' are always listed as maintainers

This is a hack! That kind of information shouldn't be hard-coded in the program, obviously, but I don't have patience for more command-line parsing at the moment.

commit6a6d603d379e581d487768b0fcbe75bcf66796be authorPeter Simons <simons@cryp.to> dateTue 9 Aug 2011, 15:53 (15 years ago) parenta8b6ae9
1 file changed+2−1
src/Hackage4Nix.hs+2−1
src/Hackage4Nix.hs+2−1
@@ -155,13 +155,14 @@ updateNixPkgs paths = do
155155 nix' <- io (BS.readFile file) >>= parseNixFile file
156156 flip (maybe (return ())) nix' $ \nix -> do
157157 let Pkg name vers sha plats maints path = nix
158+ maints' = nub (sort (maints ++ ["andres","simons"]))
158159 plats'
159160 | null plats && not (null maints) = ["self.ghc.meta.platforms"]
160161 | otherwise = plats
161162 msgDebug ("re-generate " ++ path)
162163 when (null maints) (msgInfo ("warning: no maintainers configured for " ++ path))
163164 pkg <- readCabalFile name vers
164− io $ writeFile path (showNixPkg (cabal2nix pkg sha plats' maints))
165+ io $ writeFile path (showNixPkg (cabal2nix pkg sha plats' maints'))
165166 modify $ \cfg -> cfg { _pkgset = Set.insert nix (_pkgset cfg) }
166167 pkgset <- gets (selectLatestVersions . _pkgset)
167168 updates' <- flip mapM (Set.elems pkgset) $ \pkg -> do