From 0f760506be44da7b34dcea36c9b14557a3331a9a Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Sat, 8 Sep 2018 03:45:57 -0400 Subject: quilter: init at 1.6.3 --- pkgs/applications/editors/quilter/default.nix | 73 +++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 pkgs/applications/editors/quilter/default.nix (limited to 'pkgs/applications/editors/quilter') diff --git a/pkgs/applications/editors/quilter/default.nix b/pkgs/applications/editors/quilter/default.nix new file mode 100644 index 000000000000..4d4cb0239bf3 --- /dev/null +++ b/pkgs/applications/editors/quilter/default.nix @@ -0,0 +1,73 @@ +{ stdenv, fetchFromGitHub, fetchpatch, vala, pkgconfig, meson, ninja, python3 +, granite, gtk3, desktop-file-utils, gnome3, gtksourceview, webkitgtk, gtkspell3 +, discount, gobjectIntrospection, wrapGAppsHook }: + +stdenv.mkDerivation rec { + pname = "quilter"; + version = "1.6.3"; + + name = "${pname}-${version}"; + + src = fetchFromGitHub { + owner = "lainsce"; + repo = pname; + rev = version; + sha256 = "1wa0i6dgg6fgb7q9z33v9qmn1a1dn3ik58v1f3a49dvd5xyf8q6q"; + }; + + nativeBuildInputs = [ + desktop-file-utils + gobjectIntrospection + meson + ninja + pkgconfig + python3 + vala + wrapGAppsHook + ]; + + buildInputs = [ + discount + granite + gtk3 + gtksourceview + gtkspell3 + webkitgtk + gnome3.libgee + ]; + + patches = [ + # Fix build with vala 0.42 - Drop these in next release + (fetchpatch { + url = "https://github.com/lainsce/quilter/commit/a58838213cd7f2d33048c7b34b96dc8875612624.patch"; + sha256 = "1a4w1zql4zfk8scgrrssrm9n3sh5fsc1af5zvrqk8skbv7f2c80n"; + }) + (fetchpatch { + url = "https://github.com/lainsce/quilter/commit/d1800ce830343a1715bc83da3339816554896be5.patch"; + sha256 = "0xl5iz8bgx5661vbbq8qa1wkfvw9d3da67x564ckjfi05zq1vddz"; + }) + # Correct libMarkdown dependency discovery: See https://github.com/lainsce/quilter/pull/170 + (fetchpatch { + url = "https://github.com/lainsce/quilter/commit/8b1f3a60bd14cb86c1c62f9917c5f0c12bc4e459.patch"; + sha256 = "1kjc6ygf9yjvqfa4xhzxiava3338swp9wbjhpfaa3pyz3ayh188n"; + }) + # post_install script cleanups: See https://github.com/lainsce/quilter/pull/171 + (fetchpatch { + url = "https://github.com/lainsce/quilter/commit/55bf3b10cd94fcc40b0867bbdb1931a09f577922.patch"; + sha256 = "1330amichaif2qfrh4qkxwqbcpr87ipik7vzjbjdm2bv3jz9353r"; + }) + ]; + + postPatch = '' + chmod +x meson/post_install.py + patchShebangs meson/post_install.py + ''; + + meta = with stdenv.lib; { + description = "Focus on your writing - designed for elementary OS"; + homepage = https://github.com/lainsce/quilter; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ worldofpeace ]; + platforms = platforms.linux; + }; +} -- cgit 1.4.1