From 61f6355a738baafaf8d912a6204f984f2ba269cb Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Fri, 4 Oct 2024 17:20:49 +0800 Subject: [PATCH] flake hashes --- flake.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 03196b6..a05a145 100644 --- a/flake.nix +++ b/flake.nix @@ -9,8 +9,8 @@ pkgs = import nixpkgs { system = "x86_64-linux"; overlays = [ (import mozilla-overlay) crosspkgs-overlay ]; }; rustManifest = pkgs.fetchurl { - url = "https://static.rust-lang.org/dist/2024-09-05/channel-rust-nightly.toml"; - sha256 = "sha256-3aoA7PuH09g8F+60uTUQhnHrb/ARDLueSOD08ZVsWe0="; + url = "https://static.rust-lang.org/dist/2024-07-19/channel-rust-nightly.toml"; + sha256 = "sha256-MM2K43Kg+f83XQXT2lI7W/ZdQjLXhMUvA6eGtD+rqDY="; }; rustTargets = []; rustChannelOfTargets = _channel: _date: targets: @@ -104,9 +104,7 @@ dontFixup = true; }; - cargo-xbuild = pkgs.cargo-xbuild.overrideAttrs(oa: { - postPatch = "substituteInPlace src/sysroot.rs --replace 2021 2018"; - }); + cargo-xbuild = pkgs.cargo-xbuild; build-crate = name: crate: features: rustPlatform.buildRustPackage rec { name = "${crate}"; @@ -114,7 +112,12 @@ src = builtins.filterSource (path: type: baseNameOf path != "target" ) ./.; - cargoLock = { lockFile = ./Cargo.lock; }; + cargoLock = { + lockFile = ./Cargo.lock; + outputHashes = { + "fatfs-0.4.0" = "sha256-P7IgvhwTPXtNhcyv8cFqwO2UdaEcCGJY7UBG6+yBFSg="; + }; + }; nativeBuildInputs = [ cargo-xbuild llvmPackages_11.clang-unwrapped ]; buildPhase = ''