flake init
This commit is contained in:
commit
8f5d74a6da
37
flake.nix
Normal file
37
flake.nix
Normal 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 .
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user