-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
49 lines (42 loc) · 1.15 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
description = "find-binary-version";
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.05";
rust = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils = {
url = "github:numtide/flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, rust, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
rust-toolchain = with rust.packages.${system};
let
channel_1_59_0 = {
channel = "1.59.0";
sha256 = "sha256-4IUZZWXHBBxcwRuQm9ekOwzc0oNqH/9NkI1ejW7KajU=";
};
stable_1_59_0 = toolchainOf channel_1_59_0;
in
combine [
(stable_1_59_0.withComponents [ "rustc" "cargo" "rust-src" "clippy" ])
latest.rustfmt
latest.rust-analyzer
];
in
{
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
rust-toolchain
cargo-release
pkg-config
libarchive
];
};
});
}