diff options
author | Jean-Philippe Cugnet <jpc+github@ejpcmac.net> | 2019-01-13 00:01:05 +0100 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2019-01-13 00:01:05 +0100 |
commit | 6ca8443c3be92457ecd4f81532687f99281cbcae (patch) | |
tree | 60a720d99c3842634f581d2480509050170069d0 /pkgs/applications/office/scribus | |
parent | 4d9f34a9e674a1306adc1b6ee102f8daea9c942c (diff) | |
download | nixpkgs-6ca8443c3be92457ecd4f81532687f99281cbcae.tar nixpkgs-6ca8443c3be92457ecd4f81532687f99281cbcae.tar.gz nixpkgs-6ca8443c3be92457ecd4f81532687f99281cbcae.tar.bz2 nixpkgs-6ca8443c3be92457ecd4f81532687f99281cbcae.tar.lz nixpkgs-6ca8443c3be92457ecd4f81532687f99281cbcae.tar.xz nixpkgs-6ca8443c3be92457ecd4f81532687f99281cbcae.tar.zst nixpkgs-6ca8443c3be92457ecd4f81532687f99281cbcae.zip |
scribus: Add an icon (#53456)
* scribus: Add an icon * scribus: Put the icon SVG in a Gist
Diffstat (limited to 'pkgs/applications/office/scribus')
-rw-r--r-- | pkgs/applications/office/scribus/default.nix | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/pkgs/applications/office/scribus/default.nix b/pkgs/applications/office/scribus/default.nix index 76bf7ac6893..434b4e64ee6 100644 --- a/pkgs/applications/office/scribus/default.nix +++ b/pkgs/applications/office/scribus/default.nix @@ -1,8 +1,13 @@ { stdenv, fetchurl, pkgconfig, freetype, lcms, libtiff, libxml2 , libart_lgpl, qt4, python2, cups, fontconfig, libjpeg -, zlib, libpng, xorg, cairo, podofo, aspell, boost, cmake }: +, zlib, libpng, xorg, cairo, podofo, aspell, boost, cmake, imagemagick }: let + icon = fetchurl { + url = "https://gist.githubusercontent.com/ejpcmac/a74b762026c9bc4000be624c3d085517/raw/18edc497c5cb6fdeef1c8aede37a0ee68413f9d3/scribus-icon-centered.svg"; + sha256 = "0hq3i7c2l50445an9glhhg47kj26y16svfajc6naqn307ph9vzc3"; + }; + pythonEnv = python2.withPackages(ps: [ps.tkinter]); in stdenv.mkDerivation rec { name = "scribus-1.4.7"; @@ -21,8 +26,16 @@ in stdenv.mkDerivation rec { boost # for internal 2geom library libXaw libXext libX11 libXtst libXi libXinerama libpthreadstubs libXau libXdmcp + imagemagick # To build the icon ]; + postInstall = '' + for i in 16 24 48 64 96 128 256 512; do + mkdir -p $out/share/icons/hicolor/''${i}x''${i}/apps + convert -background none -resize ''${i}x''${i} ${icon} $out/share/icons/hicolor/''${i}x''${i}/apps/scribus.png + done + ''; + meta = { maintainers = [ stdenv.lib.maintainers.marcweber ]; platforms = stdenv.lib.platforms.linux; |