Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
flake.nix: Add simulation requirements to devShell
Fintan Halpenny committed 15 days ago
commit ed7ebaf1969c6b6a8b7bd6304844942fc820093b
parent e0883df0204f9d15e674dd9c7a6074ffd147ff0c
2 files changed +23 -5
modified flake.lock
@@ -126,16 +126,16 @@
    },
    "nixpkgs-unstable": {
      "locked": {
-
        "lastModified": 1771371298,
-
        "narHash": "sha256-AudCpsjP7MfL1mAusLjyyiOz+SF+JujxWzoSAhjk+Og=",
+
        "lastModified": 1776548001,
+
        "narHash": "sha256-ZSK0NL4a1BwVbbTBoSnWgbJy9HeZFXLYQizjb2DPF24=",
        "owner": "NixOS",
        "repo": "nixpkgs",
-
        "rev": "bf117123cd658283c5b5c587e59091168323ad61",
+
        "rev": "b12141ef619e0a9c1c84dc8c684040326f27cdcc",
        "type": "github"
      },
      "original": {
        "owner": "NixOS",
-
        "ref": "release-25.11",
+
        "ref": "nixos-unstable",
        "repo": "nixpkgs",
        "type": "github"
      }
modified flake.nix
@@ -2,7 +2,7 @@
  description = "Radicle";

  inputs = {
-
    nixpkgs-unstable.url = "github:NixOS/nixpkgs/release-25.11";
+
    nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
    nixpkgs-stable.url = "github:NixOS/nixpkgs/release-25.11";
    nixpkgs.follows = "nixpkgs-stable";

@@ -35,6 +35,7 @@
  outputs = {
    self,
    nixpkgs,
+
    nixpkgs-unstable,
    crane,
    flake-utils,
    advisory-db,
@@ -47,6 +48,10 @@
        inherit system;
        overlays = [(import rust-overlay)];
      };
+
      unstable = import nixpkgs-unstable {
+
        inherit system;
+
        overlays = [(import rust-overlay)];
+
      };

      msrv = let
        msrv = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).workspace.package.rust-version;
@@ -366,12 +371,25 @@
          just
          ripgrep
          sqlite
+

+
          # /simulation
+
          cue
+
          unstable.kubectl
+
          unstable.talosctl
+
          timoni
+
          qemu
+
          OVMF.fd
        ];

        env = {
          RUST_BACKTRACE = "full";
          RUST_SRC_PATH = "${rustupDevShell.toolchain}/lib/rustlib/src/rust/library";
        };
+

+
        # NixOS: OVMF firmware lives in the Nix store, not /usr/share/OVMF.
+
        # talosctl has hardcoded search paths, so we expose the store path for
+
        # the simulation justfile to symlink into a location talosctl can find.
+
        env.OVMF_FD_PATH = "${pkgs.OVMF.fd}/FV";
      };
    });
}