Migrate Nix shell config to Flake

This commit is contained in:
2023-12-09 18:33:39 +01:00
parent c12960caea
commit 0cb61384e9
6 changed files with 80 additions and 48 deletions

View File

@@ -29,7 +29,13 @@ sourceSets {
protobuf {
// Fetch protoc compiler
protoc {
artifact = "com.google.protobuf:protoc:$protobufVersion"
def protobufExecutable = System.getenv("PROTOBUF_EXECUTABLE")
if (protobufExecutable == null) {
artifact = "com.google.protobuf:protoc:$protobufVersion"
} else {
path = protobufExecutable
}
}
generatedFilesBaseDir = "$projectDir/build/proto/"
@@ -42,4 +48,4 @@ protobuf {
}
}
}
}
}