this repo has no description
at main 845 B view raw
1{ 2 description = "A Nix-flake-based Kotlin development environment"; 3 4 inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; 5 6 outputs = { self, nixpkgs }: 7 let 8 javaVersion = 20; 9 10 overlays = [ 11 (final: prev: rec { 12 jdk = prev."jdk${toString javaVersion}"; 13 kotlin = prev.kotlin.override { jre = jdk; }; 14 }) 15 ]; 16 supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; 17 forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f { 18 pkgs = import nixpkgs { inherit system; }; 19 }); 20 in 21 { 22 devShells = forEachSupportedSystem ({ pkgs }: { 23 default = pkgs.mkShell { 24 packages = with pkgs; [ 25 kotlin 26 kotlin-language-server 27 ]; 28 }; 29 }); 30 }; 31}