Skip to content

Commit f0e0b68

Browse files
committed
optional -> optionals
1 parent eb1a89d commit f0e0b68

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

nix/pkgs/cli.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ buildGoModule {
1919

2020
subPackages = [ "cmd/cli" ];
2121

22-
nativeBuildInputs = [ ] ++ (lib.optional withPodman [ pkg-config ]);
22+
nativeBuildInputs = [ ] ++ (lib.optionals withPodman [ pkg-config ]);
2323

2424
buildInputs =
2525
[ ]
26-
++ (lib.optional withWasm [ wasmtime.dev ])
27-
++ (lib.optional withPodman [
26+
++ (lib.optionals withWasm [ wasmtime.dev ])
27+
++ (lib.optionals withPodman [
2828
btrfs-progs
2929
gpgme
3030
]);
@@ -34,7 +34,7 @@ buildGoModule {
3434
"main.version=${version}"
3535
];
3636

37-
tags = [ ] ++ (lib.optional withWasm [ "wasmtime" ]) ++ (lib.optional withPodman [ "podman" ]);
37+
tags = [ ] ++ (lib.optionals withWasm [ "wasmtime" ]) ++ (lib.optionals withPodman [ "podman" ]);
3838

3939
postInstall = ''
4040
mv $out/bin/cli $out/bin/msgscriptcli

nix/pkgs/server.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ buildGoModule {
1919

2020
subPackages = [ "cmd/server" ];
2121

22-
nativeBuildInputs = [ ] ++ (lib.optional withPodman [ pkg-config ]);
22+
nativeBuildInputs = [ ] ++ (lib.optionals withPodman [ pkg-config ]);
2323

2424
buildInputs =
2525
[ ]
26-
++ (lib.optional withWasm [ wasmtime.dev ])
27-
++ (lib.optional withPodman [
26+
++ (lib.optionals withWasm [ wasmtime.dev ])
27+
++ (lib.optionals withPodman [
2828
btrfs-progs
2929
gpgme
3030
]);
@@ -34,7 +34,7 @@ buildGoModule {
3434
"main.version=${version}"
3535
];
3636

37-
tags = [ ] ++ (lib.optional withWasm [ "wasmtime" ]) ++ (lib.optional withPodman [ "podman" ]);
37+
tags = [ ] ++ (lib.optionals withWasm [ "wasmtime" ]) ++ (lib.optionals withPodman [ "podman" ]);
3838

3939
doCheck = false; # Requires networking, will just timeout
4040

0 commit comments

Comments
 (0)