3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #246238 from hexclover/feat/kdocker

kdocker: init at 5.4
This commit is contained in:
Pol Dellaiera 2023-07-31 09:16:02 +02:00 committed by GitHub
commit 609d704145
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 62 additions and 0 deletions

View file

@ -6679,6 +6679,12 @@
githubId = 41522204;
name = "hexchen";
};
hexclover = {
email = "hexclover@outlook.com";
github = "hexclover";
githubId = 47456195;
name = "hexclover";
};
heyimnova = {
email = "git@heyimnova.dev";
github = "heyimnova";

View file

@ -0,0 +1,54 @@
{ stdenv
, lib
, fetchFromGitHub
, qmake
, wrapQtAppsHook
, libX11
, libXmu
, libXpm
, qtbase
, qtx11extras
}:
stdenv.mkDerivation (finalAttrs: {
pname = "kdocker";
version = "5.4";
src = fetchFromGitHub {
owner = "user-none";
repo = "KDocker";
rev = "${finalAttrs.version}";
hash = "sha256-CTz2M9nv5Rf1amnSpLiIUZLH9Q3te6ZyFNUzSGHdYJc=";
};
nativeBuildInputs = [
qmake
wrapQtAppsHook
];
buildInputs = [
libX11
libXmu
libXpm
qtbase
qtx11extras
];
prePatch = ''
for h in Xatom Xlib Xmu; do
sed -i "s|#include <$h|#include <X11/$h|" src/xlibutil.h src/{kdocker,scanner,trayitem,trayitemmanager}.cpp
done
for t in target icons desktop appdata; do
sed -i "s|$t.path = /usr|$t.path = $out|" kdocker.pro
done
sed -i "s|/etc/bash_completion.d|$out/share/bash-completion/completions|" kdocker.pro
'';
meta = with lib; {
description = "Dock any application into the system tray";
homepage = "https://github.com/user-none/KDocker";
license = licenses.gpl2Only;
maintainers = with maintainers; [ hexclover ];
platforms = platforms.linux;
};
})

View file

@ -1776,6 +1776,8 @@ with pkgs;
kaufkauflist = callPackage ../applications/misc/kaufkauflist { };
kdocker = libsForQt5.callPackage ../tools/X11/kdocker { };
kicli = callPackage ../tools/misc/kicli { };
ksmbd-tools = callPackage ../os-specific/linux/ksmbd-tools { };