diff options
Diffstat (limited to '')
| -rw-r--r-- | flake.nix | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -6,11 +6,16 @@ url = "github:edolstra/flake-compat"; flake = false; }; + fenix = { + url = "github:nix-community/fenix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = { self, nixpkgs, flake-utils, + fenix, ... }: flake-utils.lib.eachDefaultSystem (system: let @@ -18,6 +23,18 @@ in { packages.atuin = pkgs.callPackage ./atuin.nix { inherit (pkgs.darwin.apple_sdk.frameworks) Security SystemConfiguration AppKit; + rustPlatform = let + toolchain = + fenix.packages.${system}.fromToolchainFile + { + file = ./rust-toolchain.toml; + sha256 = "sha256-7QfkHty6hSrgNM0fspycYkRcB82eEqYa4CoAJ9qA3tU="; + }; + in + pkgs.makeRustPlatform { + cargo = toolchain; + rustc = toolchain; + }; }; packages.default = self.outputs.packages.${system}.atuin; |
