python311Packages.icoextract: add exe-thumbnailer

This commit is contained in:
Donovan Glover 2023-08-03 09:02:54 -04:00
parent ef99fa5c5e
commit 14bfde910d
No known key found for this signature in database
GPG key ID: EA7408A77AE1BE65
2 changed files with 9 additions and 1 deletions

View file

@ -22,10 +22,15 @@ buildPythonPackage rec {
"icoextract"
];
postInstall = ''
mkdir -p $out/share/thumbnailers
substituteAll ${./exe-thumbnailer.thumbnailer} $out/share/thumbnailers/exe-thumbnailer.thumbnailer
'';
meta = with lib; {
description = "Extract icons from Windows PE files";
homepage = "https://github.com/jlu5/icoextract";
license = licenses.mit;
maintainers = with maintainers; [ bryanasdev000 ];
maintainers = with maintainers; [ bryanasdev000 donovanglover ];
};
}

View file

@ -0,0 +1,3 @@
[Thumbnailer Entry]
Exec=@out@/bin/exe-thumbnailer -v -s %s %i %o
MimeType=application/x-ms-dos-executable;application/x-dosexec;application/x-msdownload