Files
nixpkgs/pkgs/by-name/kx/kxstitch/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
1.2 KiB
Nix

{
stdenv,
lib,
fetchgit,
cmake,
imagemagick,
kdePackages,
pkg-config,
}:
stdenv.mkDerivation {
pname = "kxstitch";
version = "unstable-2025-08-16";
src = fetchgit {
url = "https://invent.kde.org/graphics/kxstitch.git";
rev = "bfe934ffc2c2dfa1cc554bc4483a3285b027b00c";
hash = "sha256-B81nwInFWcQVDJU6VINII8crVPtV5zYBXADVVe+wCu4=";
};
buildInputs = with kdePackages; [
qtbase
kconfig
kconfigwidgets
kcompletion
kio
ktextwidgets
kxmlgui
];
nativeBuildInputs = [
cmake
imagemagick
pkg-config
]
++ (with kdePackages; [
extra-cmake-modules
wrapQtAppsHook
]);
postInstall = ''
install -D $src/org.kde.kxstitch.desktop $out/share/applications/org.kde.kxstitch.desktop
for size in 16 22 32 48 64 128 256; do
install -D $src/icons/app/$size-apps-kxstitch.png $out/share/icons/hicolor/$size\x$size/kxstitch.png
done
'';
meta = {
homepage = "https://invent.kde.org/graphics/kxstitch";
description = "Cross stitch pattern and chart creation";
maintainers = with lib.maintainers; [ eliandoran ];
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
mainProgram = "kxstitch";
};
}