Skip to content

Commit

Permalink
Use Rust from nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Jun 21, 2024
1 parent 63bed43 commit f8db7c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 27 deletions.
21 changes: 1 addition & 20 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 4 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = { self, nixpkgs, flake-utils, rust-overlay } @ imports: (
outputs = { self, nixpkgs, flake-utils } @ imports: (
flake-utils.lib.eachDefaultSystem (
system: (
let
overlays = [
(import rust-overlay)
];
pkgs = import nixpkgs { inherit overlays system; };
baseDependencies = with pkgs; [
Expand All @@ -34,7 +29,9 @@
};
doc-tests = pkgs.mkShell {
buildInputs = with pkgs; [
rust-bin.stable.latest.default
cargo
rustc
rustfmt
]
++ baseDependencies;
};
Expand Down

0 comments on commit f8db7c9

Please sign in to comment.