initial commit

This commit is contained in:
Gustavo "Guz" L. de Mello
2024-03-18 13:39:50 -03:00
commit 8ba4ebe0a2
4 changed files with 171 additions and 0 deletions

30
flake.nix Normal file
View File

@@ -0,0 +1,30 @@
{
description = "learning.rs";
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, flake-utils, rust-overlay }:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
openssl
pkg-config
eza
fd
(rust-bin.stable.latest.default.override {
extensions = [ "rust-src" ];
})
rust-analyzer
];
};
});
}