Merge pull request #235881 from zendo/upd/thiefmd
thiefmd: 0.2.5 -> 0.2.7
This commit is contained in:
commit
9688969ecb
1 changed files with 46 additions and 23 deletions
|
@ -1,46 +1,69 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, wrapGAppsHook, cmake, desktop-file-utils, glib
|
{ lib
|
||||||
, meson, ninja, pkg-config, vala, clutter, discount, gtk3, gtksourceview4, gtkspell3
|
, stdenv
|
||||||
, libarchive, libgee, libhandy, libsecret, link-grammar, webkitgtk }:
|
, fetchFromGitHub
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, vala
|
||||||
|
, pkg-config
|
||||||
|
, wrapGAppsHook
|
||||||
|
, desktop-file-utils
|
||||||
|
, discount
|
||||||
|
, glib
|
||||||
|
, gtk3
|
||||||
|
, gtksourceview4
|
||||||
|
, gtkspell3
|
||||||
|
, json-glib
|
||||||
|
, libarchive
|
||||||
|
, libgee
|
||||||
|
, libhandy
|
||||||
|
, libsecret
|
||||||
|
, libxml2
|
||||||
|
, link-grammar
|
||||||
|
, webkitgtk_4_1
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "thiefmd";
|
pname = "thiefmd";
|
||||||
version = "0.2.5-stability";
|
version = "0.2.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "kmwallio";
|
owner = "kmwallio";
|
||||||
repo = "ThiefMD";
|
repo = "ThiefMD";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-cUZ7NVGe4e9ZISo9gjWFuDNCyF3rsQtrDX+ureyqtwM=";
|
hash = "sha256-noNfGFMeIyKhAgiovJDn91TLELAOQ4nD/5QlQfsKTII=";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake desktop-file-utils glib meson wrapGAppsHook
|
meson
|
||||||
ninja pkg-config vala
|
ninja
|
||||||
|
vala
|
||||||
|
pkg-config
|
||||||
|
wrapGAppsHook
|
||||||
|
desktop-file-utils
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
clutter discount gtk3 gtksourceview4 gtkspell3
|
discount # libmarkdown
|
||||||
libarchive libgee libhandy libsecret link-grammar
|
glib
|
||||||
webkitgtk
|
gtk3
|
||||||
|
gtksourceview4
|
||||||
|
gtkspell3
|
||||||
|
json-glib
|
||||||
|
libarchive
|
||||||
|
libgee
|
||||||
|
libhandy
|
||||||
|
libsecret
|
||||||
|
libxml2
|
||||||
|
link-grammar
|
||||||
|
webkitgtk_4_1
|
||||||
];
|
];
|
||||||
|
|
||||||
dontUseCmakeConfigure = true;
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
mv $out/share/applications/com.github.kmwallio.thiefmd.desktop \
|
|
||||||
$out/share/applications/thiefmd.desktop
|
|
||||||
substituteInPlace $out/share/applications/thiefmd.desktop \
|
|
||||||
--replace 'Exec=com.github.kmwallio.' Exec=$out/bin/
|
|
||||||
|
|
||||||
makeWrapper $out/bin/com.github.kmwallio.thiefmd \
|
|
||||||
$out/bin/thiefmd \
|
|
||||||
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Markdown & Fountain editor that helps with organization and management";
|
description = "Markdown & Fountain editor that helps with organization and management";
|
||||||
homepage = "https://thiefmd.com";
|
homepage = "https://thiefmd.com";
|
||||||
|
downloadPage = "https://github.com/kmwallio/ThiefMD";
|
||||||
|
mainProgram = "com.github.kmwallio.thiefmd";
|
||||||
license = licenses.gpl3Only;
|
license = licenses.gpl3Only;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ wolfangaukang ];
|
maintainers = with maintainers; [ wolfangaukang ];
|
||||||
|
|
Loading…
Reference in a new issue