diff options
author | Peder Bergebakken Sundt <pbsds@hotmail.com> | 2024-04-07 21:42:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-07 21:42:25 +0200 |
commit | 0e4bf5608fa32013957ead19e4274d7678228f2f (patch) | |
tree | c133faf6cc8a36a103ac37b8eb857e1495f5478c /pkgs/by-name/kr | |
parent | cec926bf1989c6fe84c4c37954a787c9ad9b4a38 (diff) | |
parent | 1816172445bb714c9b4766f93c90aeb7f9b7e58f (diff) |
Merge pull request #285177 from lelgenio/krita-plugin-gmic-package
krita: wrap with plugins, krita-plugin-gmic init at 3.2.4.1
Diffstat (limited to 'pkgs/by-name/kr')
-rw-r--r-- | pkgs/by-name/kr/krita-plugin-gmic/package.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/by-name/kr/krita-plugin-gmic/package.nix b/pkgs/by-name/kr/krita-plugin-gmic/package.nix new file mode 100644 index 0000000000000..4cd46efd083a3 --- /dev/null +++ b/pkgs/by-name/kr/krita-plugin-gmic/package.nix @@ -0,0 +1,51 @@ +{ 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 ]; + + buildInputs = [ + fftw + krita.unwrapped + libsForQt5.kcoreaddons + libsForQt5.qttools + ]; + + 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 ]; + }; +}) |