diff options
author | worldofpeace <worldofpeace@users.noreply.github.com> | 2018-09-08 03:45:57 -0400 |
---|---|---|
committer | worldofpeace <worldofpeace@users.noreply.github.com> | 2018-09-09 18:34:30 -0400 |
commit | 0f760506be44da7b34dcea36c9b14557a3331a9a (patch) | |
tree | b6da4fd7ed9af446ff63a6013f8feee746866f46 /pkgs/applications/editors/quilter | |
parent | 2785958760386e8098fea9df4be8c3c54ff02032 (diff) |
quilter: init at 1.6.3
Diffstat (limited to 'pkgs/applications/editors/quilter')
-rw-r--r-- | pkgs/applications/editors/quilter/default.nix | 73 |
1 files changed, 73 insertions, 0 deletions
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; + }; +} |