Created
November 15, 2023 18:21
-
-
Save MikaelFangel/d40720dfdf34548bd8f1a5093a7e8c36 to your computer and use it in GitHub Desktop.
A simple rust devshell flake for direnv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "A basic rust devshell flake"; | |
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | |
inputs.flake-utils.url = "github:numtide/flake-utils"; | |
outputs = { self, nixpkgs, flake-utils }: | |
flake-utils.lib.eachDefaultSystem (system: | |
let pkgs = nixpkgs.legacyPackages.${system}; | |
in { | |
devShells.default = | |
pkgs.mkShell { buildInputs = with pkgs; [ cargo rustc ]; }; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment