Options
buildCommand
Command to build the jar application. If not provided, a default builder is used
Type: null or string
Default:
null
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
builder-extra-inputs
Extra inputs to the default builder
Type: list of package
Default:
[ ]
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
builder-java-opts
List of Java options to include in default builder command
Type: list of string
Default:
[ ]
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
builder-postBuild
Post build commands for the default builder
Type: string
Default:
""
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
builder-preBuild
Pre build commands for the default builder
Type: string
Default:
""
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
compileCljOpts
Override options passed to compile-clj
Type: anything
Default:
null
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
customJdk
This option has no description.
Type: submodule
Default:
{ }
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
customJdk.enable
Creates a custom JDK runtime with jlink
.
Type: boolean
Default:
false
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
customJdk.extraJdkModules
Extra JDK modules appended to jdkModules
Type: list of string
Default:
[ ]
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
customJdk.jdkModules
Option passed to jlink --add-modules
.
If null
, jdeps
will be used to analyze the uberjar
Type: null or string
Default:
null
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
customJdk.locales
Option passed to jlink --include-locales
Type: null or string
Default:
null
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
java-opts
List of Java options to include in the application wrapper
Type: list of string
Default:
[ ]
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
javacOpts
Options passed to javac. Needed if the projects contains java source files
Type: null or (submodule)
Default:
null
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
javacOpts.javac-opts
This option has no description.
Type: null or (list of string)
Default:
[ ]
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
javacOpts.src-dirs
This option has no description.
Type: list of string
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
jdk
JDK used to build and run the application.
Type: package
Default:
pkgs.jdk_headless
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
lockfile
The lock file
Type: null or path
Default:
null
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
main-ns
Main clojure namespace. A -main
function is expected here.
main-ns
file must include the :gen-class directive, e.g.: (ns foo (:gen-class))
Type: string
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
name
Name of the clojure project. Needs to include the namespace.
Type: string
Example:
"myorg/project"
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
nativeImage
This option has no description.
Type: submodule
Default:
{ }
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
nativeImage.enable
Generates a binary with GraalVM
Type: boolean
Default:
false
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
nativeImage.extraNativeImageBuildArgs
Extra arguments to be passed to the native-image command
Type: list of string
Default:
[ ]
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
nativeImage.graalvm
GraalVM used at build time
Type: package
Default:
pkgs.graalvm-ce
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
nativeImage.graalvmXmx
XMX size of GraalVM during build
Type: string
Default:
"-J-Xmx6g"
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
projectSrc
Project source code.
Type: path
Example:
./.
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
version
Derivation and clojure project version
Type: string
Default:
"DEV"
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix
withLeiningen
Enable it to invoke leiningen during the build
Type: boolean
Default:
false
Declared by: - https://github.com/jlesquembre/clj-nix/blob/main/modules/top-level.nix