summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/ko/kontainer/package.nix
blob: 8c1606283d4d218b874912cb8f3147abf05c86e0 (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
65
66
67
68
69
70
71
72
73
74
75
76
{
  lib,
  stdenv,
  fetchFromGitHub,
  cmake,
  ninja,
  kdePackages,
  nix-update-script,
  git,
  distrobox,
}:
stdenv.mkDerivation (finalAttrs: {
  pname = "kontainer";
  version = "1.6.2";

  strictDeps = true;

  src = fetchFromGitHub {
    owner = "DenysMb";
    repo = "Kontainer";
    tag = finalAttrs.version;
    hash = "sha256-K9JXBhfJDHrvaA98f+NgXbozKP4FkYGgrEXGDSSue5Y=";
  };

  nativeBuildInputs = [
    cmake
    ninja
  ]
  ++ (with kdePackages; [
    extra-cmake-modules
    wrapQtAppsHook
  ]);

  buildInputs = [
    git
  ]
  ++ (with kdePackages; [
    qtbase
    qtdeclarative
    kirigami
    kirigami-addons
    ki18n
    kcoreaddons
    qqc2-desktop-style
    kiconthemes
    kio
  ]);

  qtWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ distrobox ]}" ];

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Graphical management application for Distrobox containers";
    longDescription = ''
      Kontainer is a graphical user interface (GUI) application built with KDE Kirigami that provides a user-friendly way to manage Distrobox containers.

      *Container Management*: Create new containers from various Linux distributions, delete existing containers, upgrade containers and list and view all containers.

      *Terminal Integration*: Open terminal sessions inside containers using the system default terminal emulator and execute commands within containers.

      *Package Management*: Install package files inside containers and automatic detection of appropriate package managers based on container distribution.

      *Desktop Integration*: Generate desktop shortcuts for containers, full integration with the host system through Distrobox and color-coded container listing based on distribution.
    '';
    homepage = "https://github.com/DenysMb/Kontainer";
    changelog = "https://github.com/DenysMb/Kontainer/releases/tag/${finalAttrs.version}";
    mainProgram = "kontainer";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [
      griffi-gh
      sigmasquadron
    ];
    platforms = lib.platforms.linux;
  };
})