Archived
1
0
This repository has been archived on 2025-10-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
learning.rs/flake.nix
Gustavo "Guz" L. de Mello 08d7328c6a chore: project setup
2024-02-19 13:05:42 -03:00

31 lines
799 B
Nix

{
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
];
};
});
}