File tree 2 files changed +56
-0
lines changed
2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 6
6
url = "github:edolstra/flake-compat" ;
7
7
flake = false ;
8
8
} ;
9
+ fenix = {
10
+ url = "github:nix-community/fenix" ;
11
+ inputs . nixpkgs . follows = "nixpkgs" ;
12
+ } ;
9
13
} ;
10
14
outputs = {
11
15
self ,
12
16
nixpkgs ,
13
17
flake-utils ,
18
+ fenix ,
14
19
...
15
20
} :
16
21
flake-utils . lib . eachDefaultSystem ( system : let
17
22
pkgs = nixpkgs . outputs . legacyPackages . ${ system } ;
18
23
in {
19
24
packages . atuin = pkgs . callPackage ./atuin.nix {
20
25
inherit ( pkgs . darwin . apple_sdk . frameworks ) Security SystemConfiguration AppKit ;
26
+ rustPlatform = let
27
+ toolchain =
28
+ fenix . packages . ${ system } . fromToolchainFile
29
+ {
30
+ file = ./rust-toolchain.toml ;
31
+ sha256 = "sha256-7QfkHty6hSrgNM0fspycYkRcB82eEqYa4CoAJ9qA3tU=" ;
32
+ } ;
33
+ in
34
+ pkgs . makeRustPlatform {
35
+ cargo = toolchain ;
36
+ rustc = toolchain ;
37
+ } ;
21
38
} ;
22
39
packages . default = self . outputs . packages . ${ system } . atuin ;
23
40
You can’t perform that action at this time.
0 commit comments