Skip to content

Commit

Permalink
nix init
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Dec 21, 2022
0 parents commit dc1b4ea
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
@@ -0,0 +1 @@
use flake || use nix
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
/result
43 changes: 43 additions & 0 deletions flake.lock

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

15 changes: 15 additions & 0 deletions flake.nix
@@ -0,0 +1,15 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = inputs:
inputs.flake-utils.lib.eachDefaultSystem (system:
let pkgs = import inputs.nixpkgs { inherit system; };
in {
devShell = pkgs.mkShell {
packages = [ pkgs.rustc pkgs.cargo pkgs.libiconv pkgs.rustfmt ];
};
});
}

0 comments on commit dc1b4ea

Please sign in to comment.