mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
thiefmd: init at 0.2.4
This commit is contained in:
parent
47a8fe3ac2
commit
0302351277
48
pkgs/applications/editors/thiefmd/default.nix
Normal file
48
pkgs/applications/editors/thiefmd/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{ 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";
|
||||
version = "0.2.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kmwallio";
|
||||
repo = "ThiefMD";
|
||||
rev = "v${version}-easypdf";
|
||||
sha256 = "sha256-YN17o6GtpulxhXs+XYZLY36g9S8ggR6URNLrjs5PEoI=";
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -9848,6 +9848,8 @@ with pkgs;
|
|||
|
||||
thicket = callPackage ../applications/version-management/git-and-tools/thicket { };
|
||||
|
||||
thiefmd = callPackage ../applications/editors/thiefmd { };
|
||||
|
||||
thin-provisioning-tools = callPackage ../tools/misc/thin-provisioning-tools { };
|
||||
|
||||
thinkpad-scripts = python3.pkgs.callPackage ../tools/misc/thinkpad-scripts { };
|
||||
|
|
Loading…
Reference in a new issue