Merge pull request #183676 from raboof/inkcut-fixes

authored by winter.bsky.social and committed by GitHub 8d435fca d31b00de

+23
+23
pkgs/applications/misc/inkcut/default.nix
··· 1 1 { lib 2 + , fetchpatch 2 3 , python3Packages 3 4 , fetchFromGitHub 4 5 , wrapQtAppsHook ··· 17 18 rev = "refs/tags/v${version}"; 18 19 sha256 = "sha256-S5IrNWVoUp1w+P7DrKlOUOyY3Q16CHSct9ndZOB3UpU="; 19 20 }; 21 + 22 + patches = [ 23 + # fix opening the extension on inkscape 1.2 24 + # https://github.com/inkcut/inkcut/pull/340 25 + (fetchpatch { 26 + url = "https://github.com/inkcut/inkcut/commit/d5d5d0ab3c588c576b668f4c7b07a10609ba2fd0.patch"; 27 + hash = "sha256-szfiOujuV7OOwYK/OU51m9FK6dzkbWds+h0cr5dGIg4="; 28 + }) 29 + # fix loading a document from stdin (as used from the extension) 30 + # https://github.com/inkcut/inkcut/issues/341 31 + (fetchpatch { 32 + url = "https://github.com/inkcut/inkcut/commit/748ab4157f87afec37dadd715094e87d02c9c739.patch"; 33 + hash = "sha256-ZGiwZru2bUYu749YSz5vxmGwLTAoYIAsafcX6PmdbYo="; 34 + revert = true; 35 + }) 36 + # fix distutils deprecation error 37 + # https://github.com/inkcut/inkcut/pull/343 38 + (fetchpatch { 39 + url = "https://github.com/inkcut/inkcut/commit/9fb95204981bcc51401a1bc10caa02d1fae0d6cb.patch"; 40 + hash = "sha256-nriys7IWPGykZjVz+DIDsE9Tm40DewkHQlIUaxFwtzM="; 41 + }) 42 + ]; 20 43 21 44 postPatch = '' 22 45 substituteInPlace inkcut/device/transports/printer/plugin.py \