flake init

This commit is contained in:
Rowan Torbitzky-Lane 2025-03-18 00:43:44 -05:00
commit 8f5d74a6da

37
flake.nix Normal file
View File

@ -0,0 +1,37 @@
{
description = "A flake for developing in a clojure environment with vscode";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
};
outputs = { nixpkgs, ... }:
let system = "x86_64-linux"; in
{
devShells."${system}".default =
let
pkgs = nixpkgs.legacyPackages."${system}";
in
pkgs.mkShellNoCC {
buildInputs = [ pkgs.bashInteractive ];
packages = with pkgs; [
rustc
cargo
gcc
rustfmt
clippy
(vscode-with-extensions.override {
vscode = vscodium;
vscodeExtensions = [
rust-lang.rust-analyzer
];
})
];
shellHook = ''
export SHELL=${pkgs.lib.getExe pkgs.bashInteractive}
echo "starting codium"
codium .
'';
};
};
}