build: nixos support

This commit is contained in:
FalsePattern 2023-07-31 23:46:45 +02:00
parent e77aab80ae
commit 8bf3aae728
Signed by: falsepattern
GPG key ID: FDF7126A9E124447
2 changed files with 14 additions and 0 deletions

2
.gitignore vendored
View file

@ -143,3 +143,5 @@ gradle-app.setting
*.hprof *.hprof
# End of https://www.toptal.com/developers/gitignore/api/intellij+all,gradle,java # End of https://www.toptal.com/developers/gitignore/api/intellij+all,gradle,java
jbr

View file

@ -96,6 +96,18 @@ tasks {
} }
} }
task<Exec>("nixos_jbr") {
description = "Create a symlink to package jetbrains.jdk"
group = "build setup"
commandLine("nix-build", "<nixpkgs>", "-A", "jetbrains.jdk", "-o", "jbr")
}
withType<org.jetbrains.intellij.tasks.RunIdeBase> {
project.file("jbr/bin/java")
.takeIf { it.exists() }
?.let { projectExecutable.set(it.toString()) }
}
// TODO this whole thing // TODO this whole thing
// //
// signPlugin { // signPlugin {