python311Packages.icoextract: add exe-thumbnailer
This commit is contained in:
parent
ef99fa5c5e
commit
14bfde910d
2 changed files with 9 additions and 1 deletions
|
@ -22,10 +22,15 @@ buildPythonPackage rec {
|
||||||
"icoextract"
|
"icoextract"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p $out/share/thumbnailers
|
||||||
|
substituteAll ${./exe-thumbnailer.thumbnailer} $out/share/thumbnailers/exe-thumbnailer.thumbnailer
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Extract icons from Windows PE files";
|
description = "Extract icons from Windows PE files";
|
||||||
homepage = "https://github.com/jlu5/icoextract";
|
homepage = "https://github.com/jlu5/icoextract";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ bryanasdev000 ];
|
maintainers = with maintainers; [ bryanasdev000 donovanglover ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
Loading…
Reference in a new issue