-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathWORKSPACE
57 lines (47 loc) · 1.4 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
workspace(name = "io_tweag_rules_nixpkgs")
load("//nixpkgs:nixpkgs.bzl", "nixpkgs_git_repository", "nixpkgs_package")
# For tests
nixpkgs_git_repository(
name = "remote_nixpkgs",
remote = "https://github.com/NixOS/nixpkgs",
revision = "18.09",
sha256 = "6451af4083485e13daa427f745cbf859bc23cb8b70454c017887c006a13bd65e",
)
nixpkgs_package(
name = "nixpkgs-git-repository-test",
repositories = { "nixpkgs": "@remote_nixpkgs//:default.nix" },
attribute_path = "hello",
)
nixpkgs_package(
name = "hello",
# deliberately not repositories, to test whether repository still works
repository = "//:nixpkgs.nix"
)
nixpkgs_package(
name = "expr-test",
nix_file_content = "let pkgs = import <nixpkgs> {}; in pkgs.hello",
repositories = { "nixpkgs": "//:nixpkgs.nix" }
)
nixpkgs_package(
name = "attribute-test",
attribute_path = "hello",
repositories = { "nixpkgs": "//:nixpkgs.nix" }
)
nixpkgs_package(
name = "expr-attribute-test",
nix_file_content = "import <nixpkgs> {}",
attribute_path = "hello",
repositories = { "nixpkgs": "//:nixpkgs.nix" },
)
nixpkgs_package(
name = "nix-file-test",
nix_file = "//tests:nixpkgs.nix",
attribute_path = "hello",
repositories = { "nixpkgs": "//:nixpkgs.nix" },
)
nixpkgs_package(
name = "nix-file-deps-test",
nix_file = "//tests:hello.nix",
nix_file_deps = ["//tests:pkgname.nix"],
repositories = { "nixpkgs": "//:nixpkgs.nix" },
)