Skip to content

Commit

Permalink
add nix-dev files (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
enricozb authored Apr 3, 2024
1 parent f9aab33 commit 5f782ea
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ tmp/

flamegraph.svg
.vscode/

# nix
.envrc
/.direnv/
115 changes: 115 additions & 0 deletions flake.lock

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

19 changes: 19 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
description = "HVM-Core";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.fenix.url = "github:nix-community/fenix/monthly";

outputs = { self, nixpkgs, flake-utils, fenix }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
rust-toolchain = fenix.packages.${system}.fromToolchainFile {
file = ./rust-toolchain.toml;
# to recompute the hash, replace with `pkgs.lib.fakeSha256`
sha256 = "sha256-hBzihtLpwbCyL5AgwKj0sUbJXRir18utWgqUZHGsbFs=";
};
in {
devShells.default = pkgs.mkShell { packages = [ rust-toolchain ]; };
});
}

0 comments on commit 5f782ea

Please sign in to comment.