git.iko.soy/typeable/nixpkgs
on master help sign in
inkscape: fix due to glibmm update
commit9afd1161e715a7966a1f29bf6626e505ef2a7f2b authorDamien Cassou <damien@cassou.me> dateSun 3 Apr 2016, 10:31 (11 years ago) parente148cf2
2 files changed+18
pkgs/applications/graphics/inkscape/default.nix+2 pkgs/applications/graphics/inkscape/deprecated-scopedptr.patch+16
pkgs/applications/graphics/inkscape/default.nix+2
@@ -25,6 +25,8 @@ stdenv.mkDerivation rec {
2525 sha256 = "06ql3x732x2rlnanv0a8aharsnj91j5kplksg574090rks51z42d";
2626 };
2727
28+ patches = [ ./deprecated-scopedptr.patch ];
29+
2830 postPatch = ''
2931 patchShebangs share/extensions
3032 ''
pkgs/applications/graphics/inkscape/deprecated-scopedptr.patchnew file+16
@@ -0,0 +1,16 @@
1+glibmm deprecated ScopedPtr
2+---
3+diff -u src/ui/clipboard.cpp src/ui/clipboard.cpp
4+--- a/src/ui/clipboard.cpp 2015-01-28 04:32:28.162676000 +0100
5++++ b/src/ui/clipboard.cpp 2016-04-03 09:13:12.360980533 +0200
6+@@ -1402,7 +1402,7 @@
7+
8+ Glib::ustring target;
9+ if (atom_name) {
10+- target = Glib::ScopedPtr<char>(atom_name).get(); //This frees the gchar*.
11++ target = Glib::make_unique_ptr_gfree(atom_name).get(); //This frees the gchar*.
12+ }
13+
14+ listTargets.push_back(target);
15+
16+Diff finished. Sun Apr 3 09:13:51 2016