diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2023-06-15 11:30:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-15 11:30:29 +0200 |
commit | 570b69e2b7165c7ae23b54868a4a439c3d5fee32 (patch) | |
tree | f400bcea97b2888b73c5431eafd94ae139c9a664 /pkgs | |
parent | a0de4f327a13daf0af062d26efa8b3f4551a5036 (diff) | |
parent | d1b239ac5dc9d1a0bc9e8f5ebf3653c293a9e8ea (diff) | |
download | nixpkgs-570b69e2b7165c7ae23b54868a4a439c3d5fee32.tar nixpkgs-570b69e2b7165c7ae23b54868a4a439c3d5fee32.tar.gz nixpkgs-570b69e2b7165c7ae23b54868a4a439c3d5fee32.tar.bz2 nixpkgs-570b69e2b7165c7ae23b54868a4a439c3d5fee32.tar.lz nixpkgs-570b69e2b7165c7ae23b54868a4a439c3d5fee32.tar.xz nixpkgs-570b69e2b7165c7ae23b54868a4a439c3d5fee32.tar.zst nixpkgs-570b69e2b7165c7ae23b54868a4a439c3d5fee32.zip |
Merge pull request #231952 from aidalgol/zim-icon-fix
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/office/zim/default.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/applications/office/zim/default.nix b/pkgs/applications/office/zim/default.nix index c20c9449ae8..c9e787f6d9a 100644 --- a/pkgs/applications/office/zim/default.nix +++ b/pkgs/applications/office/zim/default.nix @@ -27,6 +27,20 @@ python3Packages.buildPythonApplication rec { makeWrapperArgs+=("''${gappsWrapperArgs[@]}") ''; + postInstall = '' + ( + cd icons + for img in *.{png,svg}; do + size=''${img#zim} + size=''${size%.png} + size=''${size%.svg} + dimensions="''${size}x''${size}" + mkdir -p $out/share/icons/hicolor/$dimensions/apps + cp $img $out/share/icons/hicolor/$dimensions/apps/${pname}.png + done + ) + ''; + # RuntimeError: could not create GtkClipboard object doCheck = false; |