41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
appimageTools,
|
|
fetchurl,
|
|
makeWrapper
|
|
}:
|
|
|
|
let
|
|
version = "6.0.1";
|
|
pname = "krita-appimage";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.kde.org/stable/krita/${version}/krita-${version}-x86_64.AppImage";
|
|
hash = "sha256-lzIgaqZiTnUOW5FSRF+1ROpj3RASWC390aLVFSBBTQo=";
|
|
};
|
|
|
|
appimageContents = appimageTools.extract { inherit pname version src; };
|
|
in
|
|
appimageTools.wrapType2 {
|
|
inherit pname version src;
|
|
|
|
extraInstallCommands = ''
|
|
install -m 444 -D ${appimageContents}/org.kde.krita.desktop $out/share/applications/krita.desktop
|
|
install -m 444 -D ${appimageContents}/krita.png $out/share/icons/hicolor/256x256/apps/krita.png
|
|
substituteInPlace $out/share/applications/krita.desktop \
|
|
--replace-fail "Exec=krita" "Exec=krita-appimage"
|
|
|
|
source ${makeWrapper}/nix-support/setup-hook
|
|
wrapProgram $out/bin/${pname} \
|
|
--set FONTCONFIG_FILE /etc/fonts/fonts.conf
|
|
'';
|
|
|
|
meta = {
|
|
description = "Digital painting and illustration application";
|
|
homepage = "https://krita.org";
|
|
license = lib.licenses.gpl3Only;
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = with lib.maintainers; [ ];
|
|
};
|
|
}
|