2021-10-26 13:17:04 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, wrapGAppsHook, cmake, desktop-file-utils, glib
|
|
|
|
, meson, ninja, pkg-config, vala, clutter, discount, gtk3, gtksourceview4, gtkspell3
|
|
|
|
, libarchive, libgee, libhandy, libsecret, link-grammar, webkitgtk }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "thiefmd";
|
2022-05-09 14:20:53 +00:00
|
|
|
version = "0.2.5-stability";
|
2021-10-26 13:17:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kmwallio";
|
|
|
|
repo = "ThiefMD";
|
2022-05-09 14:20:53 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-cUZ7NVGe4e9ZISo9gjWFuDNCyF3rsQtrDX+ureyqtwM=";
|
2021-10-26 13:17:04 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake desktop-file-utils glib meson wrapGAppsHook
|
|
|
|
ninja pkg-config vala
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
clutter discount gtk3 gtksourceview4 gtkspell3
|
|
|
|
libarchive libgee libhandy libsecret link-grammar
|
|
|
|
webkitgtk
|
|
|
|
];
|
|
|
|
|
|
|
|
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; {
|
|
|
|
description = "Markdown & Fountain editor that helps with organization and management";
|
|
|
|
homepage = "https://thiefmd.com";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
|
|
|
};
|
|
|
|
}
|