Skip to content

Commit

Permalink
Make building compatible with java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
fehnomenal committed Nov 10, 2020
1 parent 0b4acf5 commit 1819036
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
in {
devShell.x86_64-linux = pkgs.mkShell {
buildInputs = with pkgs; [
openjdk11
openjdk8
];
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package systems.fehn.intellijdirenv.services
import com.intellij.notification.NotificationGroup
import java.nio.file.Files
import java.nio.file.Path
import java.nio.file.Paths

class DirenvService {
private var _direnvExecutable: Path? = null
Expand All @@ -21,7 +22,7 @@ class DirenvService {
System.getenv("PATH")
.split(':')
.asSequence()
.map { Path.of(it, "direnv") }
.map { Paths.get(it, "direnv") }
.firstOrNull { Files.exists(it) && Files.isExecutable(it) }

val notificationGroup = NotificationGroup.balloonGroup("Direnv")
Expand Down

0 comments on commit 1819036

Please sign in to comment.