git.iko.soy/typeable/nixpkgs
on master help sign in
gnome3.gnome-calculator: less hacky fix to #17912

Closes #17912

commitc49f2a0854b33ea432371715129d3eb6b7bd7ff5 authorobadz <obadz-git@obadz.com> dateTue 23 Aug 2016, 18:13 (10 years ago) parent6581f53
1 file changed+20
pkgs/desktops/gnome-3/3.20/core/gnome-calculator/default.nix+20
pkgs/desktops/gnome-3/3.20/core/gnome-calculator/default.nix+20
@@ -7,6 +7,26 @@ stdenv.mkDerivation rec {
77
88 NIX_CFLAGS_COMPILE = "-I${gnome3.glib.dev}/include/gio-unix-2.0";
99
10+ # Fix for https://github.com/NixOS/nixpkgs/issues/17912
11+ # See also https://bugzilla.gnome.org/show_bug.cgi?id=673101
12+ # Should be removed when next release comes out
13+ srcHistoryEntry = fetchurl {
14+ url = "https://raw.githubusercontent.com/GNOME/gnome-calculator/9bb6936ba74602ec891c1ffecdf1665dba1a1be4/data/history-entry.ui";
15+ sha256 = "0a6d6anwrg5l3kc7i8jyky4idnzi9bhjv9awi6615505pjhcxnaj";
16+ };
17+
18+ srcHistoryView = fetchurl {
19+ url = "https://raw.githubusercontent.com/GNOME/gnome-calculator/b87b4f5cd0cff0b9cf9e9cd2a056c56be653cab1/data/history-view.ui";
20+ sha256 = "0zyq1mcxsh707jhh3vfqplk5s83lb26gvjz62l5l6rq5yrd43fyw";
21+ };
22+
23+ prePatch = ''
24+ [ -f data/history-entry.ui ] && echo Remove the fix && exit 1
25+ [ -f data/history-view.ui ] && echo Remove the fix && exit 1
26+ cp -v ${srcHistoryEntry} data/history-entry.ui
27+ cp -v ${srcHistoryView} data/history-view.ui
28+ '';
29+
1030 propagatedUserEnvPkgs = [ gnome3.gnome_themes_standard ];
1131
1232 nativeBuildInputs = [ pkgconfig wrapGAppsHook ];