Skip to content

Instantly share code, notes, and snippets.

@MikaelFangel
Created November 15, 2023 18:21
Show Gist options
  • Save MikaelFangel/d40720dfdf34548bd8f1a5093a7e8c36 to your computer and use it in GitHub Desktop.
Save MikaelFangel/d40720dfdf34548bd8f1a5093a7e8c36 to your computer and use it in GitHub Desktop.
A simple rust devshell flake for direnv
{
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