Skip to content

Instantly share code, notes, and snippets.

@MikaelFangel
Last active November 24, 2023 10:58
Show Gist options
  • Save MikaelFangel/cafa6003cb628681782bc11a802211d5 to your computer and use it in GitHub Desktop.
Save MikaelFangel/cafa6003cb628681782bc11a802211d5 to your computer and use it in GitHub Desktop.
Simple F# devshell for direnv
{
description = "F# DevShell";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }@inputs:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in
{
formatter = pkgs.fantomas;
devShell =
pkgs.mkShell { packages = with pkgs; [ dotnet-sdk fsautocomplete ]; };
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment