about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-09 15:42:35 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-09 20:33:35 +0200
commit477cbf36f7575f7727ece155d9c88e885b130ee1 (patch)
tree82d407d1b733f333271ff11b304017c14bcc0197
parentstyle(treewide): Comply with `nix fmt` (diff)
downloadnixos-config-477cbf36f7575f7727ece155d9c88e885b130ee1.tar.gz
nixos-config-477cbf36f7575f7727ece155d9c88e885b130ee1.zip
fix(treewide): `Upgrade` the Cargo.toml file before `updating` the Cargo.lock
-rwxr-xr-xsys/nixpkgs/pkgs/comments/update.sh3
-rwxr-xr-xsys/nixpkgs/pkgs/generate_moz_extension/update.sh4
-rwxr-xr-xsys/nixpkgs/pkgs/lf-make-map/update.sh3
-rwxr-xr-xsys/nixpkgs/pkgs/yt/update.sh4
4 files changed, 10 insertions, 4 deletions
diff --git a/sys/nixpkgs/pkgs/comments/update.sh b/sys/nixpkgs/pkgs/comments/update.sh
index 26a7aeac..e500bb23 100755
--- a/sys/nixpkgs/pkgs/comments/update.sh
+++ b/sys/nixpkgs/pkgs/comments/update.sh
@@ -1,7 +1,8 @@
 #!/usr/bin/env sh
 
-cargo update
+nix flake update
 
 [ "$1" = "upgrade" ] && cargo upgrade
+cargo update
 
 # vim: ft=sh
diff --git a/sys/nixpkgs/pkgs/generate_moz_extension/update.sh b/sys/nixpkgs/pkgs/generate_moz_extension/update.sh
index c678b421..e500bb23 100755
--- a/sys/nixpkgs/pkgs/generate_moz_extension/update.sh
+++ b/sys/nixpkgs/pkgs/generate_moz_extension/update.sh
@@ -1,6 +1,8 @@
 #!/usr/bin/env sh
 
-cargo update
+nix flake update
+
 [ "$1" = "upgrade" ] && cargo upgrade
+cargo update
 
 # vim: ft=sh
diff --git a/sys/nixpkgs/pkgs/lf-make-map/update.sh b/sys/nixpkgs/pkgs/lf-make-map/update.sh
index b34dabfa..a0a029f4 100755
--- a/sys/nixpkgs/pkgs/lf-make-map/update.sh
+++ b/sys/nixpkgs/pkgs/lf-make-map/update.sh
@@ -1,5 +1,6 @@
 #!/usr/bin/env sh
 
 nix flake update
-cargo update
+
 [ "$1" = "upgrade" ] && cargo upgrade
+cargo update
diff --git a/sys/nixpkgs/pkgs/yt/update.sh b/sys/nixpkgs/pkgs/yt/update.sh
index c678b421..e500bb23 100755
--- a/sys/nixpkgs/pkgs/yt/update.sh
+++ b/sys/nixpkgs/pkgs/yt/update.sh
@@ -1,6 +1,8 @@
 #!/usr/bin/env sh
 
-cargo update
+nix flake update
+
 [ "$1" = "upgrade" ] && cargo upgrade
+cargo update
 
 # vim: ft=sh