Skip to content

Commit

Permalink
add flake.nix, flake.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
enricozb committed Apr 3, 2024
1 parent f92475b commit 38ec601
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};
in {
devShells.default = pkgs.mkShell {
packages = with fenix.packages.${system}; [
minimal.rustc
minimal.cargo
pkgs.clippy
];
};
});
}

0 comments on commit 38ec601

Please sign in to comment.