From f20c0082645cfef34575661aeeff8d9c1ed1f127 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 27 May 2023 18:20:53 +0800 Subject: [PATCH] flake: nixpkgs 23.05 --- flake.lock | 14 +++++++------- flake.nix | 9 ++++----- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/flake.lock b/flake.lock index dddc1b4..0fc64e2 100644 --- a/flake.lock +++ b/flake.lock @@ -3,11 +3,11 @@ "mozilla-overlay": { "flake": false, "locked": { - "lastModified": 1664789696, - "narHash": "sha256-UGWJHQShiwLCr4/DysMVFrYdYYHcOqAOVsWNUu+l6YU=", + "lastModified": 1684487559, + "narHash": "sha256-SZcJEM+NnLr8ctzeQf1BGAqBHzJ3jn+tdSeO7lszIJc=", "owner": "mozilla", "repo": "nixpkgs-mozilla", - "rev": "80627b282705101e7b38e19ca6e8df105031b072", + "rev": "e6ca26fe8b9df914d4567604e426fbc185d9ef3e", "type": "github" }, "original": { @@ -18,16 +18,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1669735802, - "narHash": "sha256-qtG/o/i5ZWZLmXw108N2aPiVsxOcidpHJYNkT45ry9Q=", + "lastModified": 1685004253, + "narHash": "sha256-AbVL1nN/TDicUQ5wXZ8xdLERxz/eJr7+o8lqkIOVuaE=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "731cc710aeebecbf45a258e977e8b68350549522", + "rev": "3e01645c40b92d29f3ae76344a6d654986a91a91", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixos-22.11", + "ref": "nixos-23.05", "repo": "nixpkgs", "type": "github" } diff --git a/flake.nix b/flake.nix index c0f4798..e489c10 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,7 @@ { description = "Bare-metal Rust on Zynq-7000"; - inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-22.11; + inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-23.05; inputs.mozilla-overlay = { url = github:mozilla/nixpkgs-mozilla; flake = false; }; outputs = { self, nixpkgs, mozilla-overlay }: @@ -223,7 +223,7 @@ nativeBuildInputs = [ cargo-xbuild pkgs.llvmPackages_9.clang-unwrapped ]; buildPhase = '' - export XARGO_RUST_SRC="${rustPlatform.rust.rustc}/lib/rustlib/src/rust/library" + export XARGO_RUST_SRC="${rust}/lib/rustlib/src/rust/library" export CARGO_HOME=$(mktemp -d cargo-home.XXX) pushd ${crate} cargo xbuild --release --frozen \ @@ -265,13 +265,12 @@ hydraJobs = packages.x86_64-linux; - inherit rustPlatform; + inherit rust rustPlatform; devShell.x86_64-linux = pkgs.mkShell { name = "zynq-rs-dev-shell"; buildInputs = with pkgs; [ - rustPlatform.rust.rustc - rustPlatform.rust.cargo + rust cacert cargo-xbuild