Skip to content

Commit

Permalink
treewide: cargoSha256 -> cargoHash
Browse files Browse the repository at this point in the history
limited to by-name to limit merge conflicts, done with
```
rg 'cargoSha256 = "sha256-' pkgs/by-name/ -l | grep \\\.nix$ | xargs grep buildRustPackage -l | xe sd 'cargoSha256 = "sha256-' 'cargoHash = "sha256-'
```
  • Loading branch information
pbsds committed Jul 25, 2024
1 parent 18c8da8 commit eafa803
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion pkgs/by-name/ba/bankstown-lv2/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-IThXEY+mvT2MCw0PSWU/182xbUafd6dtm6hNjieLlKg=";
};

cargoSha256 = "sha256-yRzM4tcYc6mweTpLnnlCeKgP00L2wRgHamtUzK9Kstc=";
cargoHash = "sha256-yRzM4tcYc6mweTpLnnlCeKgP00L2wRgHamtUzK9Kstc=";

installPhase = ''
export LIBDIR=$out/lib
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/ba/batmon/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-+kjDNQKlaoI5fQ5FqYF6IPCKeE92WKxIhVCKafqfE0o=";
};

cargoSha256 = "sha256-DJpWBset6SW7Ahg60+Tu1VpH34LcVOyrEs9suKyTE9g=";
cargoHash = "sha256-DJpWBset6SW7Ahg60+Tu1VpH34LcVOyrEs9suKyTE9g=";

meta = with lib; {
description = "Interactive batteries viewer";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/ca/cargo-profiler/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let
version = "0.2.0";
rev = "0a8ab772fd5c0f1579e4847c5d05aa443ffa2bc8";
sha256 = "sha256-ZRAbvSMrPtgaWy9RwlykQ3iiPxHCMh/tS5p67/4XqqA=";
cargoSha256 = "sha256-qt3S6ZcLEP9ZQoP5+kSQdmBlxdMgGUqLszdU7JkFNVI=";
cargoHash = "sha256-qt3S6ZcLEP9ZQoP5+kSQdmBlxdMgGUqLszdU7JkFNVI=";

inherit (rustPlatform) buildRustPackage;
in buildRustPackage rec {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/co/commitmsgfmt/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rustPlatform.buildRustPackage rec {
rev = "v${version}";
hash = "sha256-HEkPnTO1HeJg8gpHFSUTkEVBPWJ0OdfUhNn9iGfaDD4=";
};
cargoSha256 = "sha256-jTRB9ogFQGVC4C9xpGxsJYV3cnWydAJLMcjhzUPULTE=";
cargoHash = "sha256-jTRB9ogFQGVC4C9xpGxsJYV3cnWydAJLMcjhzUPULTE=";

passthru.tests.version = testers.testVersion {
package = commitmsgfmt;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/el/elf2nucleus/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ rustPlatform.buildRustPackage rec {
sha256 = "sha256-FAIOtGfGow+0DrPPEBEfvaiinNZLQlGWKJ4DkMj63OA=";
};

cargoSha256 = "sha256-IeQnI6WTzxSI/VzoHtVukZtB1jX98wzLOT01NMLD5wQ=";
cargoHash = "sha256-IeQnI6WTzxSI/VzoHtVukZtB1jX98wzLOT01NMLD5wQ=";

nativeBuildInputs = [ installShellFiles ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/gp/gpustat/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ rustPlatform.buildRustPackage rec {
sha256 = "sha256-M9P/qfw/tp9ogkNOE3b2fD2rGFnii1/VwmqJHqXb7Mg=";
};

cargoSha256 = "sha256-po/pEMZEtySZnz7l2FI7Wqbmp2CiWBijchKGkqlIMPU=";
cargoHash = "sha256-po/pEMZEtySZnz7l2FI7Wqbmp2CiWBijchKGkqlIMPU=";

nativeBuildInputs = [
cmake
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/sw/swaycons/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-vyZcfBH2mry8Yd41QPX4+yLv0nS9J1yrgg7lpslJs7M=";
};

cargoSha256 = "sha256-cdZ7DpH//c9TulvPYd6aaXpQHYC1b+T7BrxAyr56Pf0=";
cargoHash = "sha256-cdZ7DpH//c9TulvPYd6aaXpQHYC1b+T7BrxAyr56Pf0=";

meta = with lib; {
description = "Window Icons in Sway with Nerd Fonts!";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/sw/swayws/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-f0kXy7/31imgHHqKPmW9K+QrLqroaPaXwlJkzOoezRU=";
};

cargoSha256 = "sha256-VYT6wV59fraAoJgR/i6GlO8s7LUoehGtxPAggEL1eLo=";
cargoHash = "sha256-VYT6wV59fraAoJgR/i6GlO8s7LUoehGtxPAggEL1eLo=";
# Required patch until upstream fixes https://gitlab.com/w0lff/swayws/-/issues/1
cargoPatches = [
./ws-update-Cargo-lock.patch
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/te/termsnap/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ rustPlatform.buildRustPackage rec {
sha256 = "sha256-FTgbbiDlHXGjkv3a2TAxjAqdClWkuteyUrtjQ8fMSIs=";
};

cargoSha256 = "sha256-hXlRkqcMHFEAnm883Q8sR8gcEbSNMutoJQsMW2M5wOY=";
cargoHash = "sha256-hXlRkqcMHFEAnm883Q8sR8gcEbSNMutoJQsMW2M5wOY=";

meta = with lib; {
description = "Create SVGs from terminal output";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/tr/treefmt1/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-icAe54Mv1xpOjUPSk8QDZaMk2ueNvjER6UyJ9uyUL6s=";
};

cargoSha256 = "sha256-bpNIGuh74nwEmHPeXtPmsML9vJOb00xkdjK0Nd7esAc=";
cargoHash = "sha256-bpNIGuh74nwEmHPeXtPmsML9vJOb00xkdjK0Nd7esAc=";

meta = {
description = "one CLI to format the code tree";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/tw/twiggy/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-NbtS7A5Zl8634Q3xyjVzNraNszjt1uIXqmctArfnqkk=";
};

cargoSha256 = "sha256-94pfhVZ0CNMn+lCl5O+wOyE+D6fVXbH4NAPx92nMNbM=";
cargoHash = "sha256-94pfhVZ0CNMn+lCl5O+wOyE+D6fVXbH4NAPx92nMNbM=";

meta = with lib; {
homepage = "https://rustwasm.github.io/twiggy/";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/wa/wapm/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rustPlatform.buildRustPackage rec {
sha256 = "sha256-T7YEe8xg5iwI/npisW0m+6FLi+eaAQVgYNe6TvMlhAs=";
};

cargoSha256 = "sha256-r4123NJ+nxNOVIg6svWr636xbxOJQ7tp76JoAi2m9p8=";
cargoHash = "sha256-r4123NJ+nxNOVIg6svWr636xbxOJQ7tp76JoAi2m9p8=";

nativeBuildInputs = [ perl ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/wl/wldash/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ rustPlatform.buildRustPackage {
./0002-Update-fontconfig.patch
];

cargoSha256 = "sha256-Y7nhj8VpO6sEzVkM3uPv8Tlk2jPn3c/uPJqFc/HjHI0=";
cargoHash = "sha256-Y7nhj8VpO6sEzVkM3uPv8Tlk2jPn3c/uPJqFc/HjHI0=";

dontPatchELF = true;

Expand Down

0 comments on commit eafa803

Please sign in to comment.