cabalg-0.1.1: cabalg.cabal
name: cabalg
version: 0.1.1
synopsis: alias for cabal install from given git repo
license: MIT
license-file: LICENSE
author: Dmitry Malikov
maintainer: malikov.d.y@gmail.com
build-type: Simple
cabal-version: >=1.10
description:
Short alias for installing cabal package from git source repository.
.
@$> cabalg git://github.com/biegunka/biegunka.git --branch=develop@
.
is just a shorthand for
.
@$> create-dir /temp/directory
$> git clone --branch develop --single-branch --depth=1 --quiet git://github.com/biegunka/biegunka.git /temp/directory
$> change-dir /temp/directory
$> cabal install@
$> change-dir-back
$> remove-dir /temp/directory@
.
If current directory has '.cabal-sandbox', 'cabalg' will attach the given repo to it.
Also notice, that '--single-branch' flag comes with 'git-1.7.10' (<https://lkml.org/lkml/2012/3/28/418>) only, so you should have it.
.
It seems to be that 'cabalg' is windows-compatible too.
executable cabalg
main-is: Main.hs
hs-source-dirs: src
other-modules: Git, Sandbox
build-depends:
base >= 4.6 && < 5
, process >= 1.2
, directory >= 1.2
, filepath >= 1.3
, optparse-applicative >= 0.7.0.2
, temporary >= 1.1.2.4
default-language: Haskell2010
source-repository head
type: git
location: https://github.com/dmalikov/cabalg