Skip to content

Commit

Permalink
Nix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
ChocolateLoverRaj committed Jun 8, 2024
1 parent 22e0d43 commit 311b3b0
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 0 deletions.
130 changes: 130 additions & 0 deletions flake.lock

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

26 changes: 26 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
description = "A devShell example";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, rust-overlay, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
in
{
devShells.default = with pkgs; mkShell {
buildInputs = [
rust-bin.stable.latest.default
];
};
}
);
}

0 comments on commit 311b3b0

Please sign in to comment.