build: nixos support
This commit is contained in:
parent
e77aab80ae
commit
8bf3aae728
2 changed files with 14 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -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
|
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue