A Chocolatey-compatible multi-platform Package Server written in Rust
Hazel provides a Nuget Feed aimed to be used as source for chocolatey. It does not aim to be a feature-complete Nuget Feed nor to be 100% standard compliant (although this is desirable), but rather to provide everything necessary for chocolatey and possibly extend on its functionality.
Easy way (vagga)
- Get vagga
- Get Rust 1.9.0 or higher
- Get libssl-dev, libpq-dev, libldap2-dev
cargo build --release --no-default-features --features stable
- (Optional for deb) Get libldap2-dev and pkg-config
- (Optional for deb) Get cargo-deb (
cargo install --git https://github.com/mmstick/cargo-deb/)
- (Optional for deb) Run
cargo deb --no-build
Running / Installation
- Get vagga
- A Postgres Server accessible by the hazel process (version depends on diesel - currently minimum tested is 9.4)
- A file system location to store package
- libraries: openssl, libpq, libldap2
- Build & Run
cargo runor get Deb Package from Releases
- (Optional / Self-Build) Copy the
hazel.tomlfrom this repo to
- (Optional / Deb) Copy the
- (Optional) Run hazel through systemd with
systemctl start hazel
Note: Currently hazel.service runs as root by default, you might want to create a new user,
set the appropriate rights on the directories used in the
hazel.toml and run hazel with limited permissions.
We aim to provide automatically build artifacts in near feature for Windows, OSX and more Linux Distributions.
$ ./hazel -h hazel 1.0.0 Victor Brekenfeld <email@example.com> Chocolatey-compatible Package Server USAGE: hazel [FLAGS] [OPTIONS] FLAGS: -h, --help Prints help information -q, --quiet Disable console output. Hazel will not make any attempts to open stdout/err -V, --version Prints version information -v Sets the level of verbosity (may be used up to 4 times) OPTIONS: -c, --config <config> Config file location (e.g. config.toml) -d, --db_url <dburl> Sets the postgres database url (e.g. postgres://postgres:postgr3s@localhost/hazel_feed_v1) -l, --logfile <logfile> Sets a log file path (default: None) -p, --port <port> HTTP port to listen on (default 80) -s, --storage <storage> Sets the storage path (e.g. /var/hazel/storage/) (default current working directory)
Every option may also be set via the config file and much more advanced options not available to simple command line parameters. See our wiki for more advanced configurations.
Install Rust and run:
git clone --branch 1.0.0 http://github.com/mpib-berlin/hazel cd hazel cargo build --release --no-default-features --features stable
We aim to provide prebuild and tested artifacts in near feature for Windows, OSX and Linux.
If you encounter any errors, feel free to open an issue on our issue tracker.
Additional Documentation and links to Nuget/Chocolatey can be found in our Wiki!
Contributions are highly welcome, just make a Pull Request. Please keep in mind to make them modular and configurable.
Copyright & License
This Code is owned by the Max Planck Institute for Human Development in Berlin, Germany.
It is Licensed under the AGPL-3.0. It may not be copied, modified, or distributed except according to those terms.
In practice this usually means, you may use the code freely to run your own server, but as soon, as you make modifications you need to disclose them, if your server is publically accessable.