nixpkgs/pkgs/applications/office/cutemarked-ng/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

58 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, qmake
, pkg-config
, qttools
, qtbase
, qtwebengine
, wrapQtAppsHook
, qmarkdowntextedit
, md4c
, hunspell
}:
stdenv.mkDerivation rec {
pname = "CuteMarkEd-NG";
version = "unstable-2021-07-29";
src = fetchFromGitHub {
owner = "Waqar144";
repo = pname;
rev = "9431ac603cef23d6f29e51e18f1eeee156f5bfb3";
sha256 = "sha256-w/D4C2ZYgI/7ZCDamTQlhrJ9vtvAMThgM/fopkdKWYc";
};
patches = [
./0001-remove-dependency-on-vendored-library.patch
./0002-use-pkgcofig-to-find-libraries.patch
];
postPatch = ''
substituteInPlace app/app.pro \
--replace '$$[QT_INSTALL_BINS]/lrelease' "lrelease"
'';
nativeBuildInputs = [
qmake
qttools
pkg-config
wrapQtAppsHook
];
buildInputs = [
md4c
qtwebengine
qmarkdowntextedit
hunspell.dev
];
meta = with lib; {
description = "A Qt-based, free and open source markdown editor";
mainProgram = "cutemarked";
homepage = "https://github.com/Waqar144/CuteMarkEd-NG";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ rewine ];
platforms = platforms.linux;
};
}