Added clojure devenv template and more stuff
This commit is contained in:
28
data/devenv/templates/clojure/flake.nix
Normal file
28
data/devenv/templates/clojure/flake.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
description = "Development flake for this clojure project";
|
||||
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};
|
||||
|
||||
projectDependencies = with pkgs; [
|
||||
];
|
||||
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
nativeBuildInputs = [ pkgs.bashInteractive ];
|
||||
buildInputs = with pkgs; [
|
||||
# Core clojure dependencies
|
||||
clojure
|
||||
leiningen
|
||||
# IDE tools
|
||||
clojure-lsp
|
||||
# Development tools
|
||||
] ++ projectDependencies;
|
||||
|
||||
};
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user