nixbit: init at 0.1.5

Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
This commit is contained in:
Patrizio Bekerle
2025-10-23 09:50:55 +02:00
parent 47294044b7
commit 6e978ef038

View File

@@ -0,0 +1,63 @@
{
cmake,
fetchFromGitHub,
installShellFiles,
kdePackages,
lib,
libgit2,
ninja,
pkg-config,
qt6,
stdenv,
xvfb-run,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "nixbit";
version = "0.1.5";
src = fetchFromGitHub {
owner = "pbek";
repo = "nixbit";
tag = "v${finalAttrs.version}";
hash = "sha256-DpjLPvmn61rEn6ui8cFfqeZEPYGyCUVVP/V7mQw1l5Y=";
};
nativeBuildInputs = [
cmake
installShellFiles
kdePackages.extra-cmake-modules
ninja
pkg-config
qt6.wrapQtAppsHook
]
++ lib.optionals stdenv.hostPlatform.isLinux [ xvfb-run ];
buildInputs = [
kdePackages.kconfig
kdePackages.kcoreaddons
kdePackages.ki18n
kdePackages.kirigami
libgit2
qt6.qtbase
qt6.qtdeclarative
qt6.qtwayland
];
# Install shell completion on Linux (with xvfb-run)
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd nixbit \
--bash <(xvfb-run $out/bin/nixbit --completion-bash) \
--fish <(xvfb-run $out/bin/nixbit --completion-fish)
'';
meta = with lib; {
description = "KDE Plasma application to update your NixOS system from a git repository";
homepage = "https://github.com/pbek/nixbit";
changelog = "https://github.com/pbek/nixbit/releases/tag/v${finalAttrs.version}";
license = licenses.gpl3Plus;
maintainers = with lib.maintainers; [ pbek ];
platforms = platforms.linux;
mainProgram = "nixbit";
};
})