We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b7cd22 commit a5563f8Copy full SHA for a5563f8
2 files changed
extra/extra/locale.nix extra/locale.nixextra/extra/locale.nix renamed to extra/locale.nix
tests/extra/locale.nix
@@ -0,0 +1,21 @@
1
+{ pkgs, devshell, runTest }:
2
+{
3
+ # Basic test
4
+ simple =
5
+ let
6
+ shell = devshell.mkShell {
7
+ imports = [ ../../extra/locale.nix ];
8
+ devshell.name = "locale-simple";
9
+ };
10
+ in
11
+ runTest "simple" { } ''
12
+ # Assume that LOCAL_ARCHIVE is not set before
13
+ assert -z "$LOCALE_ARCHIVE"
14
+
15
+ # Load the devshell
16
+ source ${shell}
17
18
+ # Sets LOCALE_ARCHIVE
19
+ assert -n "$LOCALE_ARCHIVE"
20
+ '';
21
+}
0 commit comments