blob: 0d8405aaf6595348e6a173a11abbc702517d73ff [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "workspace",
srcs = [
"nix.go",
"workspace.go",
],
importpath = "code.hackerspace.pl/hscloud/go/workspace",
visibility = ["//visibility:public"],
)
go_test(
name = "workspace_test",
srcs = ["nix_test.go"],
data = [
":exports.nix",
"//:WORKSPACE",
"//:default.nix",
"//nix/readtree:default.nix",
],
embed = [":workspace"],
deps = ["@com_github_google_go_cmp//cmp"],
)