nixpkgs/pkgs/desktops/gnome-3/3.22/core/gtksourceview/default.nix
Hamish Mackenzie 5dfe0f7ee6 gtksourceview: fix version 3 on macOS
Add darwin to the list of supported platforms for gtksourceview.
2017-04-10 23:17:16 -07:00

23 lines
619 B
Nix

{ stdenv, fetchurl, pkgconfig, atk, cairo, glib, gtk3, pango
, libxml2Python, perl, intltool, gettext, gnome3 }:
stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src;
propagatedBuildInputs = [ gtk3 ];
buildInputs = [ pkgconfig atk cairo glib pango
libxml2Python perl intltool gettext ];
preBuild = ''
substituteInPlace gtksourceview/gtksourceview-utils.c --replace "@NIX_SHARE_PATH@" "$out/share"
'';
patches = [ ./nix_share_path.patch ];
meta = with stdenv.lib; {
platforms = with platforms; linux ++ darwin;
maintainers = gnome3.maintainers;
};
}