Skip to content

Commit

Permalink
nix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
onsails committed Jul 17, 2021
1 parent ce24d22 commit 3eb842f
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
91 changes: 91 additions & 0 deletions flake.lock

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

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

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

outputs = { self, nixpkgs, utils, rust-overlay }: utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ rust-overlay.overlay ];
};
in
{

devShell = pkgs.mkShell {
buildInputs = with pkgs; [
rust-bin.stable.latest.default
libiconv
];
};

}
);
}

0 comments on commit 3eb842f

Please sign in to comment.