https://github.com/3noch/libget-hs
An attempt at an extremely high-level package manager for just about anything
https://github.com/3noch/libget-hs
Last synced: 10 months ago
JSON representation
An attempt at an extremely high-level package manager for just about anything
- Host: GitHub
- URL: https://github.com/3noch/libget-hs
- Owner: 3noch
- License: mit
- Created: 2015-10-07T14:40:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-21T18:22:36.000Z (almost 11 years ago)
- Last Synced: 2025-03-25T07:01:58.985Z (about 1 year ago)
- Language: Haskell
- Homepage:
- Size: 242 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
libget
======
An extremely high-level package manager for just about anything
Usage
-----
```bash
$ libget --help
```
See `sample.json` for a sample dependency specification for your project.
Currently, `libget` only supports copying files from a base package path where
each dependency has a directory with its name and subdirectories for each version.
For example, if you have a dependency specification in `spec.json`:
```json
{
"version": "1",
"dependencies": {
"lib/openssl": { "name": "openssl", "version": "1.0" }
}
}
```
then you must have a directory somewhere like this `/packages/openssl/1.0`.
You can install from this package source like this
```bash
$ cat spec.json | libget "/packages"
```
which will put the `openssl` dependency in `./lib/openssl`.
### Multiple Package Sources
You can do something like this to try different package sources in order:
```bash
$ libget "/local/packages" "/remote/packages" "/really/remote/packages" -f spec.json
```
If a package cannot be found in `/local/packages` then `libget` will check
`/remote/packages`, and so on.
Building
--------
You must have
* [Glasgow Haskell Compiler](http://www.haskell.org/ghc/)
* [Cabal](http://www.haskell.org/cabal/) (which comes with the [Haskell Platform](http://www.haskell.org/platform/))
Then you can
```bash
$ cd libget
$ cabal install
```
License
-------
Copyright © Covenant Eyes 2014
This package is licensed under the [MIT license](http://opensource.org/licenses/mit-license.php)
(see `LICENSE`).