Skip to content

Simple and extensible nix build library for real-world projects

License

Notifications You must be signed in to change notification settings

rvolosatovs/nixify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Description

Simple, yet extensible, batteries-included Nix flake bootstrapping library for real-world projects with focus on building reproducible, portable binary artifacts for various targets efficiently and with little to no configuration.

Features

  • 0-config reproducible, portable binary artifacts
    • Cross-compilation out-of-the-box
    • Tiny OCI (Docker) images with statically-linked binaries out-of-the-box
  • Automatic per-system flake generation from a shared definition with consistent API
  • Source filtering

Usage

Generic flakes

nixify.lib.mkFlake provides the flake construction functionality that all other language specific subsystems rely upon. It can be used to build a plain Nix flake or a generic project in your language of choice.

Examples

Rust

nixify relies on two files to "Nixify" Rust projects:

  • Cargo.toml (required), where pname and version will be taken from. Note, that virtual manifests are supported as well.
  • rust-toolchain.toml (optional). If exists, nixify will set up the Rust toolchain using data contained in this file. For cross-compilation scenarios, nixify will automatically add missing targets to the toolchain.

Cross-compilation

aarch64-darwin aarch64-linux x86_64-darwin x86_64-linux
aarch64-apple-darwin βœ”οΈ βœ”οΈ βœ”οΈ βœ”οΈ
aarch64-unknown-linux-gnu βœ”οΈ βœ”οΈ βœ”οΈ βœ”οΈ
aarch64-unknown-linux-musl βœ”οΈ βœ”οΈ βœ”οΈ βœ”οΈ
aarch64-linux-android ❌ ❌ ❌ βœ”οΈ
arm-unknown-linux-gnueabihf βœ”οΈ βœ”οΈ βœ”οΈ βœ”οΈ
arm-unknown-linux-musleabihf βœ”οΈ βœ”οΈ βœ”οΈ βœ”οΈ
armv7-unknown-linux-gnueabihf βœ”οΈ βœ”οΈ βœ”οΈ βœ”οΈ
armv7-unknown-linux-musleabihf βœ”οΈ βœ”οΈ βœ”οΈ βœ”οΈ
powerpc64le-unknown-linux-gnu βœ”οΈ βœ”οΈ βœ”οΈ βœ”οΈ
riscv64gc-unknown-linux-gnu βœ”οΈ βœ”οΈ βœ”οΈ βœ”οΈ
s390x-unknown-linux-gnu βœ”οΈ βœ”οΈ βœ”οΈ βœ”οΈ
wasm32-unknown-unknown βœ”οΈ βœ”οΈ βœ”οΈ βœ”οΈ
wasm32-wasi βœ”οΈ βœ”οΈ βœ”οΈ βœ”οΈ
x86_64-apple-darwin βœ”οΈ βœ”οΈ βœ”οΈ βœ”οΈ
x86_64-pc-windows-gnu βœ”οΈ βœ”οΈ βœ”οΈ βœ”οΈ
x86_64-unknown-linux-gnu βœ”οΈ βœ”οΈ βœ”οΈ βœ”οΈ
x86_64-unknown-linux-musl βœ”οΈ βœ”οΈ βœ”οΈ βœ”οΈ

Template

To nixify a Rust project:

nix flake init --template 'github:rvolosatovs/nixify#rust'

Examples

A flake definition at examples/rust-hello/flake.nix:

{
  inputs.nixify.url = github:rvolosatovs/nixify;

  outputs = {nixify, ...}:
    nixify.lib.rust.mkFlake {
      src = ./.;
    };
}

Produces the following outputs:

$ nix flake show --no-write-lock-file 'github:rvolosatovs/nixify?dir=examples/rust-hello'
<...>
β”œβ”€β”€β”€apps
β”‚   β”œβ”€β”€β”€aarch64-darwin
β”‚   β”‚   β”œβ”€β”€β”€default: app
β”‚   β”‚   β”œβ”€β”€β”€rust-hello: app
β”‚   β”‚   └───rust-hello-debug: app
β”‚   β”œβ”€β”€β”€aarch64-linux
β”‚   β”‚   β”œβ”€β”€β”€default: app
β”‚   β”‚   β”œβ”€β”€β”€rust-hello: app
β”‚   β”‚   └───rust-hello-debug: app
β”‚   β”œβ”€β”€β”€x86_64-darwin
β”‚   β”‚   β”œβ”€β”€β”€default: app
β”‚   β”‚   β”œβ”€β”€β”€rust-hello: app
β”‚   β”‚   └───rust-hello-debug: app
β”‚   └───x86_64-linux
β”‚       β”œβ”€β”€β”€default: app
β”‚       β”œβ”€β”€β”€rust-hello: app
β”‚       └───rust-hello-debug: app
β”œβ”€β”€β”€checks
β”‚   β”œβ”€β”€β”€aarch64-darwin
β”‚   β”‚   β”œβ”€β”€β”€audit: derivation 'rust-hello-audit-0.1.0'
β”‚   β”‚   β”œβ”€β”€β”€clippy: derivation 'rust-hello-clippy-0.1.0'
β”‚   β”‚   β”œβ”€β”€β”€doc: derivation 'rust-hello-doc-0.1.0'
β”‚   β”‚   β”œβ”€β”€β”€fmt: derivation 'rust-hello-fmt-0.1.0'
β”‚   β”‚   └───nextest: derivation 'rust-hello-nextest-0.1.0'
β”‚   β”œβ”€β”€β”€aarch64-linux
β”‚   β”‚   β”œβ”€β”€β”€audit: derivation 'rust-hello-audit-0.1.0'
β”‚   β”‚   β”œβ”€β”€β”€clippy: derivation 'rust-hello-clippy-0.1.0'
β”‚   β”‚   β”œβ”€β”€β”€doc: derivation 'rust-hello-doc-0.1.0'
β”‚   β”‚   β”œβ”€β”€β”€fmt: derivation 'rust-hello-fmt-0.1.0'
β”‚   β”‚   └───nextest: derivation 'rust-hello-nextest-0.1.0'
β”‚   β”œβ”€β”€β”€x86_64-darwin
β”‚   β”‚   β”œβ”€β”€β”€audit: derivation 'rust-hello-audit-0.1.0'
β”‚   β”‚   β”œβ”€β”€β”€clippy: derivation 'rust-hello-clippy-0.1.0'
β”‚   β”‚   β”œβ”€β”€β”€doc: derivation 'rust-hello-doc-0.1.0'
β”‚   β”‚   β”œβ”€β”€β”€fmt: derivation 'rust-hello-fmt-0.1.0'
β”‚   β”‚   └───nextest: derivation 'rust-hello-nextest-0.1.0'
β”‚   └───x86_64-linux
β”‚       β”œβ”€β”€β”€audit: derivation 'rust-hello-audit-0.1.0'
β”‚       β”œβ”€β”€β”€clippy: derivation 'rust-hello-clippy-0.1.0'
β”‚       β”œβ”€β”€β”€doc: derivation 'rust-hello-doc-0.1.0'
β”‚       β”œβ”€β”€β”€fmt: derivation 'rust-hello-fmt-0.1.0'
β”‚       └───nextest: derivation 'rust-hello-nextest-0.1.0'
β”œβ”€β”€β”€devShells
β”‚   β”œβ”€β”€β”€aarch64-darwin
β”‚   β”‚   └───default: development environment 'nix-shell'
β”‚   β”œβ”€β”€β”€aarch64-linux
β”‚   β”‚   └───default: development environment 'nix-shell'
β”‚   β”œβ”€β”€β”€x86_64-darwin
β”‚   β”‚   └───default: development environment 'nix-shell'
β”‚   └───x86_64-linux
β”‚       └───default: development environment 'nix-shell'
β”œβ”€β”€β”€formatter
β”‚   β”œβ”€β”€β”€aarch64-darwin: package 'alejandra-3.0.0'
β”‚   β”œβ”€β”€β”€aarch64-linux: package 'alejandra-3.0.0'
β”‚   β”œβ”€β”€β”€x86_64-darwin: package 'alejandra-3.0.0'
β”‚   └───x86_64-linux: package 'alejandra-3.0.0'
β”œβ”€β”€β”€overlays
β”‚   β”œβ”€β”€β”€default: Nixpkgs overlay
β”‚   β”œβ”€β”€β”€fenix: Nixpkgs overlay
β”‚   β”œβ”€β”€β”€rust-hello: Nixpkgs overlay
β”‚   └───rust-overlay: Nixpkgs overlay
└───packages
    β”œβ”€β”€β”€aarch64-darwin
    β”‚   β”œβ”€β”€β”€build-rust-hello-oci: package 'build-rust-hello-oci'
    β”‚   β”œβ”€β”€β”€default: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-apple-darwin: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-apple-darwin-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-apple-darwin-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-gnu: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-gnu-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-gnu-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-musl: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-musl-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-musl-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-armv7-unknown-linux-musleabihf: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-armv7-unknown-linux-musleabihf-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-armv7-unknown-linux-musleabihf-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-apple-darwin: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-apple-darwin-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-apple-darwin-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-gnu: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-gnu-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-gnu-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-musl: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-musl-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-musl-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-armv7-unknown-linux-musleabihf: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-armv7-unknown-linux-musleabihf-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-armv7-unknown-linux-musleabihf-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-wasm32-unknown-unknown: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-wasm32-unknown-unknown-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-wasm32-unknown-unknown-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-wasm32-wasi: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-wasm32-wasi-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-wasm32-wasi-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-apple-darwin: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-apple-darwin-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-apple-darwin-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-pc-windows-gnu: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-pc-windows-gnu-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-pc-windows-gnu-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-gnu: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-gnu-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-gnu-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-musl: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-musl-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-musl-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-wasm32-unknown-unknown: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-wasm32-unknown-unknown-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-wasm32-unknown-unknown-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-wasm32-wasi: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-wasm32-wasi-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-wasm32-wasi-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-apple-darwin: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-apple-darwin-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-apple-darwin-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-pc-windows-gnu: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-pc-windows-gnu-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-pc-windows-gnu-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-gnu: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-gnu-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-gnu-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-musl: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-musl-deps: package 'rust-hello-deps-0.1.0'
    β”‚   └───rust-hello-x86_64-unknown-linux-musl-oci: package 'docker-image-rust-hello.tar.gz'
    β”œβ”€β”€β”€aarch64-linux
    β”‚   β”œβ”€β”€β”€build-rust-hello-oci: package 'build-rust-hello-oci'
    β”‚   β”œβ”€β”€β”€default: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-apple-darwin: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-apple-darwin-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-apple-darwin-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-linux-android: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-linux-android-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-linux-android-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-gnu: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-gnu-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-gnu-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-musl: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-musl-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-musl-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-armv7-unknown-linux-musleabihf: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-armv7-unknown-linux-musleabihf-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-armv7-unknown-linux-musleabihf-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-apple-darwin: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-apple-darwin-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-apple-darwin-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-linux-android: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-linux-android-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-linux-android-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-gnu: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-gnu-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-gnu-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-musl: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-musl-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-musl-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-armv7-unknown-linux-musleabihf: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-armv7-unknown-linux-musleabihf-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-armv7-unknown-linux-musleabihf-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-wasm32-unknown-unknown: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-wasm32-unknown-unknown-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-wasm32-unknown-unknown-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-wasm32-wasi: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-wasm32-wasi-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-wasm32-wasi-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-apple-darwin: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-apple-darwin-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-apple-darwin-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-pc-windows-gnu: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-pc-windows-gnu-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-pc-windows-gnu-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-gnu: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-gnu-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-gnu-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-musl: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-musl-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-musl-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-wasm32-unknown-unknown: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-wasm32-unknown-unknown-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-wasm32-unknown-unknown-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-wasm32-wasi: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-wasm32-wasi-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-wasm32-wasi-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-apple-darwin: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-apple-darwin-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-apple-darwin-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-pc-windows-gnu: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-pc-windows-gnu-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-pc-windows-gnu-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-gnu: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-gnu-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-gnu-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-musl: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-musl-deps: package 'rust-hello-deps-0.1.0'
    β”‚   └───rust-hello-x86_64-unknown-linux-musl-oci: package 'docker-image-rust-hello.tar.gz'
    β”œβ”€β”€β”€x86_64-darwin
    β”‚   β”œβ”€β”€β”€build-rust-hello-oci: package 'build-rust-hello-oci'
    β”‚   β”œβ”€β”€β”€default: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-apple-darwin: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-apple-darwin-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-apple-darwin-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-gnu: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-gnu-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-gnu-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-musl: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-musl-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-musl-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-armv7-unknown-linux-musleabihf: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-armv7-unknown-linux-musleabihf-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-armv7-unknown-linux-musleabihf-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-apple-darwin: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-apple-darwin-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-apple-darwin-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-gnu: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-gnu-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-gnu-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-musl: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-musl-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-musl-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-armv7-unknown-linux-musleabihf: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-armv7-unknown-linux-musleabihf-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-armv7-unknown-linux-musleabihf-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-wasm32-unknown-unknown: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-wasm32-unknown-unknown-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-wasm32-unknown-unknown-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-wasm32-wasi: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-wasm32-wasi-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-wasm32-wasi-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-apple-darwin: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-apple-darwin-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-apple-darwin-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-pc-windows-gnu: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-pc-windows-gnu-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-pc-windows-gnu-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-gnu: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-gnu-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-gnu-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-musl: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-musl-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-musl-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-wasm32-unknown-unknown: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-wasm32-unknown-unknown-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-wasm32-unknown-unknown-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-wasm32-wasi: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-wasm32-wasi-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-wasm32-wasi-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-apple-darwin: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-apple-darwin-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-apple-darwin-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-pc-windows-gnu: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-pc-windows-gnu-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-pc-windows-gnu-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-gnu: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-gnu-deps: package 'rust-hello-deps-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-gnu-oci: package 'docker-image-rust-hello.tar.gz'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-musl: package 'rust-hello-0.1.0'
    β”‚   β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-musl-deps: package 'rust-hello-deps-0.1.0'
    β”‚   └───rust-hello-x86_64-unknown-linux-musl-oci: package 'docker-image-rust-hello.tar.gz'
    └───x86_64-linux
        β”œβ”€β”€β”€build-rust-hello-oci: package 'build-rust-hello-oci'
        β”œβ”€β”€β”€default: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-aarch64-apple-darwin: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-aarch64-apple-darwin-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-aarch64-apple-darwin-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-aarch64-linux-android: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-aarch64-linux-android-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-aarch64-linux-android-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-gnu: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-gnu-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-gnu-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-musl: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-musl-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-aarch64-unknown-linux-musl-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-armv7-unknown-linux-musleabihf: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-armv7-unknown-linux-musleabihf-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-armv7-unknown-linux-musleabihf-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-debug: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-aarch64-apple-darwin: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-aarch64-apple-darwin-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-aarch64-apple-darwin-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-debug-aarch64-linux-android: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-aarch64-linux-android-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-aarch64-linux-android-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-gnu: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-gnu-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-gnu-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-musl: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-musl-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-aarch64-unknown-linux-musl-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-debug-armv7-unknown-linux-musleabihf: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-armv7-unknown-linux-musleabihf-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-armv7-unknown-linux-musleabihf-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-debug-wasm32-unknown-unknown: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-wasm32-unknown-unknown-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-wasm32-unknown-unknown-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-debug-wasm32-wasi: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-wasm32-wasi-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-wasm32-wasi-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-debug-x86_64-apple-darwin: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-x86_64-apple-darwin-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-x86_64-apple-darwin-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-debug-x86_64-pc-windows-gnu: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-x86_64-pc-windows-gnu-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-x86_64-pc-windows-gnu-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-gnu: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-gnu-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-gnu-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-musl: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-musl-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-debug-x86_64-unknown-linux-musl-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-wasm32-unknown-unknown: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-wasm32-unknown-unknown-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-wasm32-unknown-unknown-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-wasm32-wasi: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-wasm32-wasi-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-wasm32-wasi-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-x86_64-apple-darwin: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-x86_64-apple-darwin-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-x86_64-apple-darwin-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-x86_64-pc-windows-gnu: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-x86_64-pc-windows-gnu-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-x86_64-pc-windows-gnu-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-gnu: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-gnu-deps: package 'rust-hello-deps-0.1.0'
        β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-gnu-oci: package 'docker-image-rust-hello.tar.gz'
        β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-musl: package 'rust-hello-0.1.0'
        β”œβ”€β”€β”€rust-hello-x86_64-unknown-linux-musl-deps: package 'rust-hello-deps-0.1.0'
        └───rust-hello-x86_64-unknown-linux-musl-oci: package 'docker-image-rust-hello.tar.gz'

Motivation

For a brief overview of motivation of this project to exist, see this talk at FOSDEM'23: https://archive.fosdem.org/2023/schedule/event/nix_and_nixos_a_success_story/