Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions libs/opsqueue_python/opsqueue_python.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
pkgs,
lib,

# Rust version. (Override this with an overlay if you like)
rustToolchain,
# Downstream users can override which Rust version is used.
# But this is opt-in. By default we'll use the same version
# that we use in this repo for development.
rustToolchain ? (
(lib.fix (final: pkgs // (import (import ../../nix/sources.nix).rust-overlay) final pkgs))
.rust-bin.fromRustupToolchainFile
../../rust-toolchain.toml
),

# Native build dependencies:
maturin,
Expand Down
10 changes: 9 additions & 1 deletion opsqueue/opsqueue.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
{
pkgs,
lib,
rustToolchain,
git,

# Downstream users can override which Rust version is used.
# But this is opt-in. By default we'll use the same version
# that we use in this repo for development.
rustToolchain ? (
(lib.fix (final: pkgs // (import (import ./nix/sources.nix).rust-overlay) final pkgs))
.rust-bin.fromRustupToolchainFile
./rust-toolchain.toml
),
}:
let
sources = import ../nix/sources.nix;
Expand Down
Loading