update-nix-fetchgit-0.2.4: A program to update fetchgit values in Nix expressions
Safe HaskellNone
LanguageHaskell2010

Update.Nix.FetchGit.Prefetch

Synopsis

Documentation

data NixPrefetchGitOutput Source #

The type of nix-prefetch-git's output

Constructors

NixPrefetchGitOutput 

Fields

nixPrefetchGit Source #

Arguments

:: [Text]

Extra arguments for nix-prefetch-git

-> Text

The URL to prefetch

-> M NixPrefetchGitOutput 

Run nix-prefetch-git

nixPrefetchUrl Source #

Arguments

:: [Text]

Extra arguments for nix-prefetch-url

-> Text

The URL to prefetch

-> M Text 

Run nix-prefetch-url --unpack

getGitFullName Source #

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"

getGitRevision Source #

Arguments

:: Text

git repo location

-> Revision

branch or tag name

-> M Text 

Return a tag or a hash

newtype Revision Source #

Constructors

Revision 

Fields