| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Update.Nix.FetchGit.Prefetch
Synopsis
- data NixPrefetchGitOutput = NixPrefetchGitOutput {}
- nixPrefetchGit :: [Text] -> Text -> M NixPrefetchGitOutput
- nixPrefetchUrl :: [Text] -> Text -> M Text
- getGitFullName :: Text -> Revision -> M Text
- getGitRevision :: Text -> Revision -> M Text
- getGitHubRevisionDate :: Text -> Text -> Revision -> M Day
- newtype Revision = Revision {
- unRevision :: Text
Documentation
data NixPrefetchGitOutput Source #
The type of nix-prefetch-git's output
Instances
Arguments
| :: [Text] | Extra arguments for nix-prefetch-git |
| -> Text | The URL to prefetch |
| -> M NixPrefetchGitOutput |
Run nix-prefetch-git
Run nix-prefetch-url
Arguments
| :: Text | git repo location |
| -> Revision | branch or tag name |
| -> M Text | Full name, i.e. with refsheads or refstags |
Discover if this ref is a branch or a tag
>>>runM _ $ getGitFullName "https://github.com/expipiplus1/update-nix-fetchgit" (Revision "0.1.0.0")Right "refs/tags/0.1.0.0"
>>>runM _ $ getGitFullName "https://github.com/expipiplus1/update-nix-fetchgit" (Revision "joe-fetchTarball")Right "refs/heads/joe-fetchTarball"
Return a tag or a hash