A collection of Nix flake templates ❄️
at master 30 lines 631 B view raw
1{ 2 description = "A Nix-flake-based Clojure development environment"; 3 4 inputs = { 5 nixpkgs.url = "github:nixos/nixpkgs/release-25.05"; 6 flake-utils.url = "github:numtide/flake-utils"; 7 }; 8 9 outputs = { 10 self, 11 nixpkgs, 12 flake-utils, 13 }: 14 flake-utils.lib.eachDefaultSystem 15 (system: let 16 pkgs = import nixpkgs { 17 inherit system; 18 }; 19 in { 20 devShells.default = pkgs.mkShell { 21 buildInputs = [ 22 pkgs.clojure 23 ]; 24 shellHook = '' 25 echo "Welcome to Clojure!" 26 echo "Run 'clojure' to start the REPL" 27 ''; 28 }; 29 }); 30}