packages feed

cabal2nix 1.5 → 1.6

raw patch · 2 files changed

+5/−4 lines, 2 files

Files

cabal2nix.cabal view
@@ -1,5 +1,5 @@ Name:                   cabal2nix-Version:                1.5+Version:                1.6 Copyright:              (c) 2011 Peter Simons License:                BSD3 License-File:           LICENSE@@ -20,8 +20,8 @@ 			file. That path can be an HTTP URL or local file 			path. For example: 			.-			> cabal2nix http://hackage.haskell.org/packages/archive/cabal2nix/1.5/cabal2nix.cabal-			> cabal2nix file:///tmp/cabal2nix.cabal 0m7zgsd1pxmw504xpvl7dg25ana6dkk1mcyjj4c1wdbkvhvbn3gn+			> cabal2nix http://hackage.haskell.org/packages/archive/cabal2nix/1.6/cabal2nix.cabal+			> cabal2nix file:///tmp/cabal2nix.cabal 			> cabal2nix /tmp/cabal2nix.cabal 0m7zgsd1pxmw504xpvl7dg25ana6dkk1mcyjj4c1wdbkvhvbn3gn 			. 			The second argument -- the hash of the source
cabal2nix.hs view
@@ -34,7 +34,8 @@  toNixName :: String -> String toNixName [] = error "toNixName: empty string is not a valid argument"-toNixName name = f ((toLower (head name)) : tail name)+toNixName "Cabal" = "cabal"+toNixName name = f name   where     f []                            = []     f ('-':c:cs) | c `notElem` "-"  = toUpper c : f cs