diff --git a/flake.lock b/flake.lock index 1c842cb23f1..eb8c0904bc8 100644 --- a/flake.lock +++ b/flake.lock @@ -2285,6 +2285,22 @@ "type": "indirect" } }, + "nixpkgs_14": { + "locked": { + "lastModified": 1728538411, + "narHash": "sha256-f0SBJz1eZ2yOuKUr5CA9BHULGXVSn6miBuUWdTyhUhU=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "b69de56fac8c2b6f8fd27f2eca01dcda8e0a4221", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs_2": { "locked": { "lastModified": 1718428119, @@ -2555,7 +2571,8 @@ "nixpkgs" ], "nixpkgsLatest": "nixpkgsLatest", - "process-compose-flake": "process-compose-flake" + "process-compose-flake": "process-compose-flake", + "rust-overlay": "rust-overlay_2" } }, "rust-overlay": { @@ -2576,6 +2593,24 @@ "type": "github" } }, + "rust-overlay_2": { + "inputs": { + "nixpkgs": "nixpkgs_14" + }, + "locked": { + "lastModified": 1733970833, + "narHash": "sha256-sPEKtSaZk2CtfF9cdhtbY93S6qGq+d2PKI1fcoDfDaI=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "f7f4c59ccdf1bec3f1547d27398e9589aa94e3e8", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + }, "secp256k1": { "flake": false, "locked": { diff --git a/flake.nix b/flake.nix index 4e6c296437f..feb978a1ae9 100644 --- a/flake.nix +++ b/flake.nix @@ -23,6 +23,7 @@ cardano-node.url = "github:intersectmbo/cardano-node/10.1.2"; mithril.url = "github:input-output-hk/mithril/2442.0"; nix-npm-buildpackage.url = "github:serokell/nix-npm-buildpackage"; + rust-overlay.url = "github:oxalica/rust-overlay"; }; outputs = @@ -32,6 +33,7 @@ # TODO remove when haskellNix updated to newer nixpkgs , nixpkgsLatest , cardano-node + , rust-overlay , ... } @ inputs: flake-parts.lib.mkFlake { inherit inputs; } { @@ -69,6 +71,7 @@ # Custom static libs used for darwin build (import ./nix/static-libs.nix) inputs.nix-npm-buildpackage.overlays.default + (import rust-overlay) # Specific versions of tools we require (final: prev: { aiken = inputs.aiken.packages.${system}.aiken; diff --git a/nix/hydra/shell.nix b/nix/hydra/shell.nix index 748ca12e882..bf1a1404ab0 100644 --- a/nix/hydra/shell.nix +++ b/nix/hydra/shell.nix @@ -53,6 +53,7 @@ let pkgs.yq # Use latest jq in all shells, to avoid 1.6 bug with large integers. pkgsLatest.jq + pkgs.rust-bin.beta.latest.default ]; libs = [