git.iko.soy/typeable/cabal2nix
on master help sign in
Update usage
3e1a648Benno Fünfstück
src/cabal2nix.hs+4−2
@@ -50,15 +50,17 @@ options =
50 ]
50 ]
51
51
52usage :: String
52usage :: String
53−usage = usageInfo "Usage: cabal2nix [options] url-to-cabal-file" options ++ unlines
53+usage = usageInfo "Usage: cabal2nix [options] URI" options ++ unlines
54 [ ""
54 [ ""
55 , "Recognized URI schemes:"
55 , "Recognized URI schemes:"
56 , ""
56 , ""
57 , " cabal://pkgname-pkgversion download the specified package from Hackage"
57 , " cabal://pkgname-pkgversion download the specified package from Hackage"
58 , " cabal://pkgname download latest version of the specified package from Hackage"
58 , " cabal://pkgname download latest version of the specified package from Hackage"
59− , " http://host/path fetch the Cabal file via HTTP"
60 , " file:///local/path load the Cabal file from the local disk"
59 , " file:///local/path load the Cabal file from the local disk"
61 , " /local/path abbreviated version of file URI"
60 , " /local/path abbreviated version of file URI"
61+ , ""
62+ , "If URI is a local path and is not a file, then it will be used as the source of the package. Otherwise, the source"
63+ , "will be downloaded from hackage."
62 ]
64 ]
63
65
64cmdlineError :: String -> IO a
66cmdlineError :: String -> IO a