import org.gradle.util.GradleVersion

initscript {
    dependencies {
        if (GradleVersion.current() >= GradleVersion.version("8.1")) {
            classpath files("plugin-gradle81.jar")
        } else if (GradleVersion.current() >= GradleVersion.version("8.0")) {
            classpath files("plugin-gradle80.jar")
        } else if (GradleVersion.current() >= GradleVersion.version("7.5")) {
            classpath files("plugin-gradle75.jar")
        } else {
            classpath files("plugin-base.jar")
        }
    }
}

apply plugin: org.nixos.gradle2nix.Gradle2NixPlugin
