diff options
author | Guillaume Girol <symphorien@users.noreply.github.com> | 2023-08-07 19:22:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-07 19:22:55 +0000 |
commit | 72b179874ef591e2618a4ae82e5c0fc590bab3b9 (patch) | |
tree | e7c7efcb8696ff9ba5b295be097dbd5a0edb5b52 /pkgs | |
parent | ef02511ff42489d13be495238d812fd1b7b2db2a (diff) | |
parent | 14bfde910dd7994e5df511d8990d84b40ce825c8 (diff) | |
download | nixlib-72b179874ef591e2618a4ae82e5c0fc590bab3b9.tar nixlib-72b179874ef591e2618a4ae82e5c0fc590bab3b9.tar.gz nixlib-72b179874ef591e2618a4ae82e5c0fc590bab3b9.tar.bz2 nixlib-72b179874ef591e2618a4ae82e5c0fc590bab3b9.tar.lz nixlib-72b179874ef591e2618a4ae82e5c0fc590bab3b9.tar.xz nixlib-72b179874ef591e2618a4ae82e5c0fc590bab3b9.tar.zst nixlib-72b179874ef591e2618a4ae82e5c0fc590bab3b9.zip |
Merge pull request #247020 from donovanglover/icoextract
python311Packages.icoextract: add exe-thumbnailer
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/icoextract/default.nix | 7 | ||||
-rw-r--r-- | pkgs/development/python-modules/icoextract/exe-thumbnailer.thumbnailer | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/icoextract/default.nix b/pkgs/development/python-modules/icoextract/default.nix index 0f2636997d12..e050dd9b9406 100644 --- a/pkgs/development/python-modules/icoextract/default.nix +++ b/pkgs/development/python-modules/icoextract/default.nix @@ -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 ]; }; } diff --git a/pkgs/development/python-modules/icoextract/exe-thumbnailer.thumbnailer b/pkgs/development/python-modules/icoextract/exe-thumbnailer.thumbnailer new file mode 100644 index 000000000000..c275ac919b6b --- /dev/null +++ b/pkgs/development/python-modules/icoextract/exe-thumbnailer.thumbnailer @@ -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 |