git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #22389 from matthewbauer/emacs-new-icons

emacs25Macport: use newer icons

commitb5957eaf2fdf3f363564abf577005a9f1d55425c authorDaiderd Jordan <daiderd@gmail.com> dateSun 5 Feb 2017, 23:52 (10 years ago) parentf6ef6b55163006
1 file changed+11
pkgs/applications/editors/emacs/macport-25.1.nix+11
pkgs/applications/editors/emacs/macport-25.1.nix+11
@@ -19,6 +19,11 @@ stdenv.mkDerivation rec {
1919 sha256 = "1zwxh7zsvwcg221mpjh0dhpdas3j9mc5q92pprf8yljl7clqvg62";
2020 };
2121
22+ hiresSrc = fetchurl {
23+ url = "ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-hires-icons-2.0.tar.gz";
24+ sha256 = "1ari8n3y1d4hdl9npg3c3hk27x7cfkwfgyhgzn1vlqkrdah4z434";
25+ };
26+
2227 enableParallelBuilding = true;
2328
2429 buildInputs = [ ncurses libxml2 gnutls pkgconfig texinfo gettext autoconf automake];
@@ -32,12 +37,18 @@ stdenv.mkDerivation rec {
3237 mv $sourceRoot $name
3338 tar xzf $macportSrc
3439 mv $name $sourceRoot
40+
41+ # extract retina image resources
42+ tar xzfv $hiresSrc --strip 1 -C $sourceRoot
3543 '';
3644
3745 postPatch = ''
3846 patch -p1 < patch-mac
3947 substituteInPlace lisp/international/mule-cmds.el \
4048 --replace /usr/share/locale ${gettext}/share/locale
49+
50+ # use newer emacs icon
51+ cp nextstep/Cocoa/Emacs.base/Contents/Resources/Emacs.icns mac/Emacs.app/Contents/Resources/Emacs.icns
4152 '';
4253
4354 configureFlags = [