Skip to content

Commit

Permalink
build: Restore pre-commit package installation in flake
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed May 17, 2024
1 parent 74e30d6 commit 709109b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/bump-versions.nu
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ let version = "x.x.x"

open Cargo.toml | update workspace.package.version $version | save -f Cargo.toml

let crates = ls crates | where type == dir | get name | filter {|n| $"($n)/Cargo.toml" | path exists } | each {|p| split row "/" | last}
let crates = ls crates | where type == dir | get name | filter {|n| $"($n)/Cargo.toml" | path exists } | each {|p| split row "/" | last}

def update-manifest [] {
let manifest = $in
let internals = $manifest | get dependencies | columns | where {|it| $it in $crates}
$internals | reduce --fold $manifest {|i, acc|
$internals | reduce --fold $manifest {|i, acc|
let field = $"dependencies.($i).version" | split row '.' | into cell-path
$acc | update $field $version
}
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

perSystem = {pkgs, ...}: {
devenv.shells.default = {
packages = with pkgs; [maturin];
packages = with pkgs; [pre-commit maturin];

languages = {
python = {
Expand Down

0 comments on commit 709109b

Please sign in to comment.