Merge pull request #165317 from fedeinthemix/xfig-icons

authored by Artturi and committed by GitHub 31747079 e9ac4b07

+13 -2
+13 -2
pkgs/applications/graphics/xfig/default.nix
··· 3 , fetchurl 4 , xlibsWrapper 5 , makeWrapper 6 , libXpm 7 , libXmu 8 , libXi ··· 21 sha256 = "0fndgbm1mkqb1sn2v2kj3nx9mxj70jbp31y2bjvzcmmkry0q3k5j"; 22 }; 23 24 - nativeBuildInputs = [ makeWrapper ]; 25 26 buildInputs = [ 27 xlibsWrapper ··· 34 ]; 35 36 postPatch = '' 37 - sed -i 's:"fig2dev":"${fig2dev}/bin/fig2dev":' src/main.c 38 ''; 39 40 postInstall = '' ··· 43 44 wrapProgram $out/bin/xfig \ 45 --set XAPPLRESDIR $out/share/X11/app-defaults 46 ''; 47 48 enableParallelBuilding = true;
··· 3 , fetchurl 4 , xlibsWrapper 5 , makeWrapper 6 + , imagemagick 7 , libXpm 8 , libXmu 9 , libXi ··· 22 sha256 = "0fndgbm1mkqb1sn2v2kj3nx9mxj70jbp31y2bjvzcmmkry0q3k5j"; 23 }; 24 25 + nativeBuildInputs = [ imagemagick makeWrapper ]; 26 27 buildInputs = [ 28 xlibsWrapper ··· 35 ]; 36 37 postPatch = '' 38 + substituteInPlace src/main.c --replace '"fig2dev"' '"${fig2dev}/bin/fig2dev"' 39 + substituteInPlace xfig.desktop --replace "/usr/bin/" "$out/bin/" 40 ''; 41 42 postInstall = '' ··· 45 46 wrapProgram $out/bin/xfig \ 47 --set XAPPLRESDIR $out/share/X11/app-defaults 48 + 49 + mkdir -p $out/share/icons/hicolor/{16x16,22x22,48x48,64x64}/apps 50 + 51 + for dimension in 16x16 22x22 48x48; do 52 + convert doc/html/images/xfig-logo.png -geometry $dimension\ 53 + $out/share/icons/hicolor/16x16/apps/xfig.png 54 + done 55 + install doc/html/images/xfig-logo.png \ 56 + $out/share/icons/hicolor/64x64/apps/xfig.png 57 ''; 58 59 enableParallelBuilding = true;