depot/pkgs/by-name/go/gomanagedocker/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

41 lines
889 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
stdenv,
darwin,
xorg,
}:
let
version = "1.4";
in
buildGoModule {
pname = "gomanagedocker";
inherit version;
src = fetchFromGitHub {
owner = "ajayd-san";
repo = "gomanagedocker";
rev = "refs/tags/v${version}";
hash = "sha256-oM0DCOHdVPJFWgmHF8yeGGo6XvuTCXar7NebM1obahg=";
};
vendorHash = "sha256-M/jfQWCBrv7hZm450yLBmcjWtNSCziKOpfipxI6U9ak=";
buildInputs =
lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ]
++ lib.optionals stdenv.isLinux [ xorg.libX11 ];
ldflags = [
"-s"
"-w"
];
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";
};
}