Home Explore Blog Models CI



nixpkgs

doc/packages/krita.section.md
24803ee785dfa8d5df995186fd06fef80d5575796de9aa0f000000030000047d
# Krita {#sec-krita}

## Python plugins {#krita-python-plugins}

"pykrita" plugins should be installed following
[Krita's manual](https://docs.krita.org/en/user_manual/python_scripting/install_custom_python_plugin.html).
This generally involves extracting the extension to `~/.local/share/krita/pykrita/`.

## Binary plugins {#krita-binary-plugins}

Binary plugins are Dynamically Linked Libraries to be loaded by Krita.

_Note: You most likely won't need to deal with binary plugins,
all known plugins are bundled and enabled by default._

### Installing binary plugins {#krita-install-binary-plugins}

You can choose what plugins are added to Krita by overriding the
`binaryPlugins` attribute.

If you want to add plugins instead of replacing, you can read the
list of previous plugins via `pkgs.krita.binaryPlugins`:

```nix
(pkgs.krita.override (old: {
  binaryPlugins = old.binaryPlugins ++ [ your-plugin ];
}))
```

### Example structure of a binary plugin {#krita-binary-plugin-structure}

```
/nix/store/00000000000000000000000000000000-krita-plugin-example-1.2.3
└── lib
   └── kritaplugins
      └── krita_example.so
```

Chunks
35f0d9a0 (1st chunk of `doc/packages/krita.section.md`)
Title: Krita Plugin Installation
Summary
This section details the installation processes for two types of Krita plugins: Python and binary. Python plugins, also known as "pykrita" plugins, are typically extracted to `~/.local/share/krita/pykrita/` as per Krita's manual. Binary plugins are Dynamically Linked Libraries, which are usually bundled and enabled by default. For custom binary plugins, users can override the `binaryPlugins` attribute or append to the existing list using `pkgs.krita.binaryPlugins`. An example structure for a binary plugin, showing its location within a Nix store, is also provided.