Skip to content

Commit

Permalink
packages: Updated rustPlatform.buildRustPackage calls to use fetchCar…
Browse files Browse the repository at this point in the history
…goVendor
  • Loading branch information
aftix committed Feb 12, 2025
1 parent 960d5e3 commit 9ebd844
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 11 deletions.
3 changes: 2 additions & 1 deletion packages/nu_plugin_audio_hook.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ rustPlatform.buildRustPackage rec {
rev = version;
sha256 = "sha256-5iCZWNZ1j5AdVSFyiGJ/85pkyRWV7fjFd95LMopeuZ0=";
};
cargoHash = "sha256-ga6c4M8iLJ3graKK4i+W/WderIFOmeBazruqsREQQso=";
useFetchCargoVendor = true;
cargoHash = "sha256-ZNvWlF+fC2zepWCr9KyYNfJjPH4x4liZoHuj0BV+W9w=";

nativeBuildInputs = [pkg-config] ++ lib.optionals stdenv.cc.isClang [rustPlatform.bindgenHook];
buildInputs = [alsa-lib];
Expand Down
3 changes: 2 additions & 1 deletion packages/nu_plugin_compress.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ rustPlatform.buildRustPackage rec {
rev = version;
sha256 = "sha256-CbvgEJ6nGbqEhLYlFCCYyERS0im7ehvtT8Zpf7PnZFA=";
};
cargoHash = "sha256-9pwePrXgDY3z5TjkMv7zxGUSoRNbYDqx0QLuZIlFwIY=";
useFetchCargoVendor = true;
cargoHash = "sha256-+3jcFjgbbz35ZjC5/K5gF6FhU/m+Xu0nGPJWq2/l+Qk=";
cargoPatches = [./nu_plugin_compress_add_lockfile.patch];

nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [rustPlatform.bindgenHook];
Expand Down
3 changes: 2 additions & 1 deletion packages/nu_plugin_desktop_notifications.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ rustPlatform.buildRustPackage rec {
rev = version;
sha256 = "sha256-X2Sp+D4PB4U4o+zwYlewPudWsoC+gE1O4fr2vYqsWkM=";
};
cargoHash = "sha256-nnUI/bQNQkdk6QuAGYi6VLFbmdrZqN6ekYEuFZvDfJU=";
useFetchCargoVendor = true;
cargoHash = "sha256-OVYal0wqYGcBPwyqhixTVRTRsdQAD68kAzffgvYDShE=";

meta = with lib; {
description = "A nushell plugin to send desktop notifications.";
Expand Down
3 changes: 2 additions & 1 deletion packages/nu_plugin_dns.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ rustPlatform.buildRustPackage rec {
rev = version;
sha256 = "sha256-a1EQV/UX4+gB14jHMReLFbOmabZ5r40FgaHO+60IPME=";
};
cargoHash = "sha256-q1gUfM7tDhnD6UA82VxVamZ2PdNA7vb5yzTXs+5y6ro=";
useFetchCargoVendor = true;
cargoHash = "sha256-5DBMej3NWYRTkoDs1a5qoydnhDW0TKBYanuMXeMSs5o=";

nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [rustPlatform.bindgenHook];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
Expand Down
3 changes: 2 additions & 1 deletion packages/nu_plugin_explore.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ rustPlatform.buildRustPackage rec {
rev = version;
sha256 = "sha256-Nne0xwUitm883K59ds2OXDWafsrIp2MGXKUbztcf0uM=";
};
cargoHash = "sha256-0fQCEnh/pOcHN2dEKPvcQpv8R2YqPggzvBpyv1gw/0M=";
useFetchCargoVendor = true;
cargoHash = "sha256-CwPS9NeHfHTkCHlp+6QVjdI6a7DfJr2fjMm9h2fAbIw=";

nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [rustPlatform.bindgenHook];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
Expand Down
3 changes: 2 additions & 1 deletion packages/nu_plugin_port_list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ rustPlatform.buildRustPackage rec {
rev = "db81c56738aecef3414a285bc2cacb1921a7f81d";
sha256 = "sha256-AdODXvou8QrCUm/J6iatNAp+kIe9uVcCdHOOf1KLog0=";
};
cargoHash = "sha256-Buff1aR8qWXnk8B6b/MyikTh0vG2MDH9z6OIDIb9zrw=";
useFetchCargoVendor = true;
cargoHash = "sha256-NJkE/BgwRUt1g5wmxzMpkdruphWn1eLU9wPlr5qpf2s=";

meta = with lib; {
description = "A nushell plugin to display all active network connections.";
Expand Down
3 changes: 2 additions & 1 deletion packages/nu_plugin_port_scan.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ rustPlatform.buildRustPackage rec {
rev = version;
sha256 = "sha256-S0tM3KlC2S1VLZt9lyVif/aGDLMo8U0svS8KmtGUKxE=";
};
cargoHash = "sha256-fWidskbzyiJUgkyGfQnK5CKi7IbmSaA9p6mDShCEqEc=";
useFetchCargoVendor = true;
cargoHash = "sha256-txHkV8WoLTInVAWI+ZYS6J5aYZnh4W3dejTm/xvltec=";

nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [rustPlatform.bindgenHook];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
Expand Down
3 changes: 2 additions & 1 deletion packages/nu_plugin_semver.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ rustPlatform.buildRustPackage rec {
rev = "refs/tags/v${version}";
sha256 = "sha256-coSL0FCghQM2a/LXMxMoSmOFO+DUqiF7HYwrhAD7frU=";
};
cargoHash = "sha256-G+DvSys0LMQtQV2sQ+4pMgQiJNCKDII7RQEwxWgTQlo=";
useFetchCargoVendor = true;
cargoHash = "sha256-yFTjFeuDK7gTvW99cxXOCX3SPa4/Jy1zdQmnxDBlH/8=";

nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [rustPlatform.bindgenHook];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
Expand Down
3 changes: 2 additions & 1 deletion packages/nu_plugin_strutils.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ rustPlatform.buildRustPackage rec {
rev = "e08358d612147b1a7f0b04eef66e4c05b96b21eb";
sha256 = "sha256-38j2SB9ynahlDOHHKB8Iqn07O5dMLcVGBywzUbVKbww=";
};
cargoHash = "sha256-fX2ABd/tUumGukmCqcr2aSozePKqDT5FZtbcMea/kjY=";
useFetchCargoVendor = true;
cargoHash = "sha256-W6vZ2WHRSVinJmpBf8jnVl5E19WIhDjDA9OTipemUyk=";

nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [rustPlatform.bindgenHook];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
Expand Down
3 changes: 2 additions & 1 deletion packages/steel-language-server.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ rustPlatform.buildRustPackage {
rev = "01d4637fd5efbeb72800ff81eb8d0912166c9b38";
hash = "sha256-n2OMJnKXbnAKlgKiRdTgKWZvo7pnfAU5K0oqbsPSXyo=";
};
cargoHash = "sha256-6/HKcH4HISyFS/heMZ0BFzZtwRi8LoPQaU+MeexhoZI=";
useFetchCargoVendor = true;
cargoHash = "sha256-M/fC8ZViRUjI36xm3ULxD+qPdkfgyMLDXNpOt16iriY=";

nativeBuildInputs = [makeWrapper openssl pkg-config] ++ lib.optionals stdenv.hostPlatform.isDarwin [rustPlatform.bindgenHook];
buildInputs =
Expand Down
3 changes: 2 additions & 1 deletion packages/steel.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ rustPlatform.buildRustPackage rec {
rev = "01d4637fd5efbeb72800ff81eb8d0912166c9b38";
hash = "sha256-n2OMJnKXbnAKlgKiRdTgKWZvo7pnfAU5K0oqbsPSXyo=";
};
cargoHash = "sha256-NekgoN7dBNQw/CXSbnzA1MRLia9amSF3xVNx24SDgi0=";
useFetchCargoVendor = true;
cargoHash = "sha256-M/fC8ZViRUjI36xm3ULxD+qPdkfgyMLDXNpOt16iriY=";

nativeBuildInputs = [makeWrapper openssl pkg-config] ++ lib.optionals stdenv.hostPlatform.isDarwin [rustPlatform.bindgenHook];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
Expand Down

0 comments on commit 9ebd844

Please sign in to comment.