Skip to content

Commit f3775d4

Browse files
antifuchsMic92
authored andcommitted
Add lib.interpolate function back
This seems to have gotten dropped in a previous PR, but it's part of the exported interface by now.
1 parent 9357f51 commit f3775d4

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
./examples/flake-module.nix
2525
./devShells/flake-module.nix
2626
./nixosModules/flake-module.nix
27+
./nix/flake-module.nix
2728
./checks/flake-module.nix
2829
./packages/flake-module.nix
2930
]
@@ -38,6 +39,5 @@
3839
"aarch64-linux"
3940
"aarch64-darwin"
4041
];
41-
4242
};
4343
}

nix/flake-module.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
flake = {
3+
lib = import ./lib.nix;
4+
};
5+
}

nix/lib.nix

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
/**
3+
Marks a string as a value that will be interpolated on the buildbot master or worker.
4+
5+
See https://docs.buildbot.net/latest/manual/configuration/properties.html#interpolate
6+
for details on the semantics of the interpolation format string.
7+
8+
Note that the `kw` selector (and passing keyword arguments) is not supported.
9+
10+
# Type
11+
```
12+
interpolate :: String -> InterpolateString
13+
```
14+
15+
# Arguments
16+
17+
value
18+
: The interpolation format string.
19+
*/
20+
interpolate = value: {
21+
_type = "interpolate";
22+
inherit value;
23+
};
24+
}

0 commit comments

Comments
 (0)