!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

678 Members
Rust154 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
4 Jun 2025
@x10an14:matrix.orgx10an14 This package does implement finalAttrs 18:28:36
@x10an14:matrix.orgx10an14Redacted or Malformed Event18:55:40
@x10an14:matrix.orgx10an14 Another smaller MWE demonstrating the (dis)utility of cargoHash, I can't understand how to use it. Apologies for the screenshot, I figured all 3 panes were relevant information 18:55:40
@x10an14:matrix.orgx10an14Forgot the moderation bot did that18:56:53
@x10an14:matrix.orgx10an14Here's an (~month ttl) upload of the screenshot: http://p.krebsco.de/0fv815l18:59:14
@k900:0upti.meK900 You can do cargoDeps = rustPlatform.fetchCargoVendor { src = newSrc; hash = ""; } 18:59:20
@x10an14:matrix.orgx10an14

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:0upti.meK900 You don't set cargoHash at all in that case 19:05:26

Show newer messages


Back to Room ListRoom Version: 6