Skip to content

An example of nixpkgs-cross-overlay usage for building services on Rust

License

Notifications You must be signed in to change notification settings

alekseysidorov/nixpkgs-rust-service-example

Repository files navigation

nixpkgs-rust-service-example

This example shows how to compile a docker image containing the Rust binary by using the nixpkgs-cross-overlay facilities.

Prerequisites

Usage

# Compile docker image
docker load <$(./scripts/build_docker_image.sh)
# Run docker image
docker run -it axum_example_service:latest

With flakes

# Compile docker image
docker load <$(nix build ".#dockerImage" --no-link --print-out-paths)
# Run docker image
docker run -it axum_example_service:latest

License

MIT licensed.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion by you, shall be licensed as MIT, without any additional terms or conditions.

About

An example of nixpkgs-cross-overlay usage for building services on Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published