Skip to content

Commit 1ec5f68

Browse files
committed
make the nix packages use the build tags properly.
1 parent 1c557b5 commit 1ec5f68

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

nix/pkgs/cli.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ buildGoModule {
3434
"main.version=${version}"
3535
];
3636

37+
tags = [ ] ++ (lib.optional withWasm [ "wasmtime" ]) ++ (lib.optional withPodman [ "podman" ]);
38+
3739
postInstall = ''
3840
mv $out/bin/cli $out/bin/msgscriptcli
3941
'';

nix/pkgs/server.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ buildGoModule {
1919

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

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

2424
buildInputs =
2525
[ ]
@@ -34,6 +34,8 @@ buildGoModule {
3434
"main.version=${version}"
3535
];
3636

37+
tags = [ ] ++ (lib.optional withWasm [ "wasmtime" ]) ++ (lib.optional withPodman [ "podman" ]);
38+
3739
doCheck = false; # Requires networking, will just timeout
3840

3941
postInstall = ''

0 commit comments

Comments
 (0)