From 2a60bb7d083d79f3213ebd51e902d5237fd0a0b8 Mon Sep 17 00:00:00 2001 From: Alessandro Candido Date: Fri, 17 May 2024 20:33:11 +0200 Subject: [PATCH] build: Restore pre-commit package installation in flake --- crates/bump-versions.nu | 4 ++-- flake.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/bump-versions.nu b/crates/bump-versions.nu index 03d3cfa9b..20db6d076 100644 --- a/crates/bump-versions.nu +++ b/crates/bump-versions.nu @@ -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 } diff --git a/flake.nix b/flake.nix index b2aeb1d8b..febe22228 100644 --- a/flake.nix +++ b/flake.nix @@ -21,7 +21,7 @@ perSystem = {pkgs, ...}: { devenv.shells.default = { - packages = with pkgs; [maturin]; + packages = with pkgs; [pre-commit maturin]; languages = { python = {