| 4 Jun 2025 |
x10an14 | As you can see in my previous message's screenshot, I tried that, to no avail. I commented it out after I got the required hash, because my end goal is to figure out how to find cargoHash - I assumed you meant that cargoHash == cargoDeps.hash.
Here's the nix code copied in this time
diff --git a/home-manager/default.nix b/home-manager/default.nix
index ce1dfb5..278eef1 100644
--- a/home-manager/default.nix
+++ b/home-manager/default.nix
@@ -1,4 +1,4 @@
-{ ... }:
+{ pkgs, ... }:
{
imports = [
./machine-configs
@@ -7,6 +7,25 @@
./programs/gui
./programs/terminal
];
+ home.packages = [
+ (pkgs.kickoff.overrideAttrs (old: rec {
+ # version = "k900-demo";
+ # src = pkgs.fetchFromGitHub {
+ # owner = "j0ru";
+ # repo = "kickoff";
+ # rev = "fe09c4cb2665cfd659844603ea7ade69d1827a3a";
+ # hash = "sha256-V4MkVjg5Q8eAJ80V/4SvEIwjVy35/HVewaR1caYLguw=";
+ # };
+ # useFetchCargoVendor = true;
+ # cargoHash = "";
+ cargoHash = "sha256-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
+ # cargoHash = "sha256-bkum6NOQL0LVsLvOmKljFHE86ZU3lLDR8+I3wL0Efmk=";
+ # cargoDeps = pkgs.rustPlatform.fetchCargoVendor {
+ # inherit src;
+ # hash = "sha256-bkum6NOQL0LVsLvOmKljFHE86ZU3lLDR8+I3wL0Efmk=";
+ # };
+ }))
+ ];
home.sessionVariables = {
DOTNET_CLI_TELEMETRY_OUTPUT = 1;
};
| 19:02:40 |
K900 | You don't set cargoHash at all in that case | 19:05:26 |
K900 | You just override cargoDeps directly | 19:05:31 |
x10an14 | Fine, I can accept that a workable override is to ignore cargoHash, and set cargoDeps as instructed. | 19:06:03 |
x10an14 | How can I figure out what to set cargoHash to? | 19:06:22 |
K900 | You don't | 19:14:02 |
K900 | You just set cargoDeps | 19:14:05 |
K900 | cargoHash gets converted to cargoDeps internally | 19:14:17 |
x10an14 | So if I want to author a buildRustPackage in nixpkgs, I don't set cargoHash, I set cargoDeps. That's what you're saying? In other words, all cargoHashes are something like technical debt pt? | 19:15:48 |
K900 | No | 19:16:13 |
K900 | You can set cargoHash | 19:16:18 |
K900 | But overrides set cargoDeps | 19:16:24 |
K900 | Because overriding is weird and jank | 19:16:30 |
x10an14 | Ahhh... I didn't find any reference (maybe I overlooked it) in https://nixos.org/manual/nixpkgs/unstable/#compiling-rust-applications-with-cargo. Good to know. Would you know of any discourse threads/github issues/other documentation explaining why this is so? | 19:21:34 |
| @hedgemage:unredacted.org joined the room. | 19:22:56 |
K900 | Not off the top of my head | 19:24:19 |
K900 | It's stupid | 19:24:20 |
x10an14 | Fair! As always, thanks for your time and answers =) | 19:25:00 |
| 0x4A6F joined the room. | 20:03:36 |
| 6 Jun 2025 |
| @creepinson:matrix.org left the room. | 00:18:40 |
| 7 Jun 2025 |
@jh-devv:matrix.org | Any rust toolchain tech people can figure out what is the actual issue in? The comments including newest one are kinda confused? I posted a fix that fixed my issue on the thread tho.
https://github.com/nix-community/fenix/issues/123
| 11:59:20 |
| andreas joined the room. | 14:22:30 |
| @deeok:matrix.org changed their display name from deeok to matrixrooms.info mod bot (does NOT read/send messages and/or invites; used for checking reported rooms). | 22:01:42 |
| @deeok:matrix.org left the room. | 22:20:48 |
| 8 Jun 2025 |
| yuzuki joined the room. | 21:58:33 |
| 9 Jun 2025 |
| Anders C. Sørby changed their display name from Anders C. Sørby to Anders. | 12:51:42 |
| Anders C. Sørby removed their profile picture. | 12:53:01 |
| @audiotrope:matrix.org joined the room. | 23:42:10 |
| Kleha joined the room. | 23:52:08 |
| 10 Jun 2025 |
| four joined the room. | 17:05:53 |