diff options
| author | Jamie Quigley <jamie@quigley.xyz> | 2024-06-13 12:10:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-13 12:10:44 +0100 |
| commit | 4ee7db5c5465270ae173014adb4bf7739ff65d92 (patch) | |
| tree | efad5a519cc4ef7d18b96eb45208be12f3b5f79a /flake.nix | |
| parent | chore(build): compile protobufs with protox (#2122) (diff) | |
| download | atuin-4ee7db5c5465270ae173014adb4bf7739ff65d92.zip | |
chore(nix): De-couple atuin nix build from nixpkgs rustc version (#2123)
Diffstat (limited to 'flake.nix')
| -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; |
