Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

nix-bindings-rust

A small support module that takes care of the nix-bindings-rust dependency in nix-cargo-integration projects.

  • Provides a module that configures the Nix dependency
  • Provides checks.<system>.dependency-nix-bindings-* to ensure that tests are run

See the README.

Installation

To use these options, add to your flake inputs:

nix-bindings-rust.url = "github:nixops4/nix-bindings-rust";

and inside the mkFlake:

imports = [ inputs.nix-bindings-rust.modules.flake.default ];

Run nix flake lock and you're set.

Options

perSystem.nix-bindings-rust.nciBuildConfig

A module to load into your nix-cargo-integration perSystem.nci.projects.<name>.depsDrvConfig or similar such options.

Example:

perSystem = perSystem@{ config, ... }: { nci.projects."my_project".depsDrvConfig = perSystem.config.nix-bindings-rust.nciBuildConfig; }

Type: module

Declared by:

perSystem.nix-bindings-rust.nixPackage

The Nix package to use when building the nix-bindings-... crates.

Type: package

Default: pkgs.nix

Declared by: