Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
69 lines
1.7 KiB
Nix
69 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchCrate,
|
|
rustPlatform,
|
|
nix-update-script,
|
|
makeDesktopItem,
|
|
copyDesktopItems,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "oxker";
|
|
version = "0.12.0";
|
|
|
|
src = fetchCrate {
|
|
inherit (finalAttrs) pname version;
|
|
hash = "sha256-cTusvvxr2ec2Qy6iWwGRmPcvGpRMOKxzrAx/qRvj+BE=";
|
|
};
|
|
|
|
cargoHash = "sha256-X5iNAwp0DcXoT82ZLq37geifztvJ/zZgOgM3SycAazA=";
|
|
|
|
checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
"--skip ui::draw_blocks::help::tests::test_draw_blocks_help_custom_keymap_one_definition"
|
|
"--skip ui::draw_blocks::help::tests::test_draw_blocks_help_custom_keymap_two_definitions"
|
|
"--skip ui::draw_blocks::help::tests::test_draw_blocks_help_one_and_two_definitions"
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
nativeBuildInputs = [
|
|
copyDesktopItems
|
|
];
|
|
|
|
desktopItems = [
|
|
(makeDesktopItem {
|
|
name = finalAttrs.pname;
|
|
desktopName = "oxker";
|
|
comment = finalAttrs.meta.description;
|
|
exec = finalAttrs.meta.mainProgram;
|
|
icon = "oxker";
|
|
terminal = true;
|
|
categories = [
|
|
"System"
|
|
"Utility"
|
|
"Monitor"
|
|
"ConsoleOnly"
|
|
];
|
|
keywords = [
|
|
"docker"
|
|
"container"
|
|
];
|
|
})
|
|
];
|
|
|
|
postInstall = ''
|
|
mkdir --parents $out/share/icons/hicolor/scalable/apps
|
|
cp .github/logo.svg $out/share/icons/hicolor/scalable/apps/oxker.svg
|
|
'';
|
|
|
|
meta = {
|
|
description = "Simple TUI to view & control docker containers";
|
|
homepage = "https://github.com/mrjackwills/oxker";
|
|
changelog = "https://github.com/mrjackwills/oxker/blob/v${finalAttrs.version}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ siph ];
|
|
mainProgram = "oxker";
|
|
};
|
|
})
|