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
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
extra-cmake-modules,
|
|
fftw,
|
|
krita,
|
|
libsForQt5,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "krita-plugin-gmic";
|
|
version = "3.2.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "amyspark";
|
|
repo = "gmic";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-SYE8kGvN7iD5OqiEEZpB/eRle67PrB5DojMC79qAQtg=";
|
|
};
|
|
sourceRoot = "${finalAttrs.src.name}/gmic-qt";
|
|
dontWrapQtApps = true;
|
|
|
|
postPatch = ''
|
|
patchShebangs \
|
|
translations/filters/csv2ts.sh \
|
|
translations/lrelease.sh
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
extra-cmake-modules
|
|
libsForQt5.qttools
|
|
];
|
|
|
|
buildInputs = [
|
|
fftw
|
|
krita.unwrapped
|
|
libsForQt5.kcoreaddons
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeFeature "GMIC_QT_HOST" "krita-plugin")
|
|
# build krita's gmic instead of using the one from nixpkgs
|
|
(lib.cmakeBool "ENABLE_SYSTEM_GMIC" false)
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/amyspark/gmic";
|
|
description = "GMic plugin for Krita";
|
|
license = lib.licenses.cecill21;
|
|
maintainers = with maintainers; [ lelgenio ];
|
|
};
|
|
})
|