podman-tui: reformat + cleanup

This commit is contained in:
Pol Dellaiera
2025-01-31 10:18:24 +01:00
parent 6f6f5736b3
commit a74cba712d
+16 -9
View File
@@ -1,4 +1,11 @@
{ lib, stdenv, fetchFromGitHub, buildGoModule, testers, podman-tui }:
{
lib,
stdenv,
fetchFromGitHub,
buildGoModule,
testers,
podman-tui,
}:
buildGoModule rec {
pname = "podman-tui";
@@ -15,15 +22,15 @@ buildGoModule rec {
env.CGO_ENABLED = 0;
tags = [ "containers_image_openpgp" "remote" ]
++ lib.optional stdenv.hostPlatform.isDarwin "darwin";
tags = [
"containers_image_openpgp"
"remote"
] ++ lib.optional stdenv.hostPlatform.isDarwin "darwin";
ldflags = [ "-s" "-w" ];
preCheck = ''
export USER="$(whoami)"
export HOME="$(mktemp -d)"
'';
ldflags = [
"-s"
"-w"
];
checkFlags =
let