Skip to content

Commit

Permalink
Merge branch 'main' into reuse-om-config
Browse files Browse the repository at this point in the history
  • Loading branch information
srid authored Nov 14, 2024
2 parents a68d5d1 + 0ed2a38 commit 6d9a2d5
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 15 deletions.
2 changes: 1 addition & 1 deletion crates/nix_rs/crate.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ in
crane = {
args = {
nativeBuildInputs = with pkgs; [
nix # Tests need nix cli
# nix # Tests need nix cli
];
DEFAULT_FLAKE_SCHEMAS = lib.cleanSourceWith {
name = "flake-schemas";
Expand Down
8 changes: 8 additions & 0 deletions crates/nix_rs/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ pub struct NixCmd {
/// Consider all previously downloaded files out-of-date.
#[cfg_attr(feature = "clap", arg(long))]
pub refresh: bool,

/// Accept `nixConfig` configuration in flake.nix
#[cfg_attr(feature = "clap", arg(long))]
pub accept_flake_config: bool,
}

impl Default for NixCmd {
Expand All @@ -54,6 +58,7 @@ impl Default for NixCmd {
extra_experimental_features: vec![],
extra_access_tokens: vec![],
refresh: false,
accept_flake_config: true,
}
}
}
Expand Down Expand Up @@ -205,6 +210,9 @@ impl NixCmd {
if self.refresh {
args.push("--refresh".to_string());
}
if self.accept_flake_config {
args.push("--accept-flake-config".to_string());
}
args
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/omnix-gui/crate.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ in
makeWrapper
tailwindcss
dioxus-cli
pkgs.nix # cargo tests need nix
# pkgs.nix # cargo tests need nix
];
inherit (rust-project.crates."omnix-cli".crane.args)
DEFAULT_FLAKE_SCHEMAS;
Expand Down
2 changes: 1 addition & 1 deletion crates/omnix-health/crate.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ in
;
CACHIX_BIN = pkgs.cachix + /bin/cachix;
nativeBuildInputs = with pkgs; [
nix # Tests need nix cli
# nix # Tests need nix cli
];
} // lib.optionalAttrs pkgs.stdenv.isLinux {
CARGO_BUILD_TARGET = "x86_64-unknown-linux-musl";
Expand Down
24 changes: 12 additions & 12 deletions crates/omnix-init/registry/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions doc/src/history.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- Support for CI steps
- Run `nix flake check` on all subflakes (#200)
- Ability to add a custom CI step. For example, to run arbitrary commands.
- Add `--accept-flake-config`
- Add `--results=FILE` to store CI results as JSON in a file
- Misc
- Avoid running `nix-store` command multiple times (#224)
Expand Down

0 comments on commit 6d9a2d5

Please sign in to comment.