blob: b9245766f5666a59bd6cfd8e411a734f8a0a1ddc (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
{
lib,
stdenv,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
xorg,
pkg-config,
gpgme,
btrfs-progs,
}:
let
version = "1.5";
in
buildGoModule {
pname = "gomanagedocker";
inherit version;
src = fetchFromGitHub {
owner = "ajayd-san";
repo = "gomanagedocker";
tag = "v${version}";
hash = "sha256-y2lepnhaLsjokd587D0bCEd9cmG7GuNBbbx+0sKSCGA=";
};
vendorHash = "sha256-hUlv3i+ri9W8Pf1zVtFxB/QSdPJu1cWCjMbquCxoSno=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
gpgme
btrfs-progs
] ++ lib.optionals stdenv.hostPlatform.isLinux [ xorg.libX11 ];
ldflags = [
"-s"
"-w"
];
# Mocking of docker and podman containers fails
doCheck = false;
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "TUI tool to manage your docker images, containers and volumes";
homepage = "https://github.com/ajayd-san/gomanagedocker";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ genga898 ];
mainProgram = "gomanagedocker";
};
}
|