44 lines
887 B
Nix
44 lines
887 B
Nix
|
{ lib
|
||
|
, stdenv
|
||
|
, fetchFromGitHub
|
||
|
, cmake
|
||
|
, qt6
|
||
|
}:
|
||
|
|
||
|
stdenv.mkDerivation (finalAttrs: {
|
||
|
pname = "vnote";
|
||
|
version = "3.18.2";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "vnotex";
|
||
|
repo = "vnote";
|
||
|
rev = "v${finalAttrs.version}";
|
||
|
fetchSubmodules = true;
|
||
|
hash = "sha256-2yNhWDExxg5A6DgGtKAtql3HsJuYG1YM/NjUJ718jRw=";
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
cmake
|
||
|
qt6.wrapQtAppsHook
|
||
|
];
|
||
|
|
||
|
buildInputs = [
|
||
|
qt6.qtbase
|
||
|
qt6.qtwebengine
|
||
|
qt6.qtsvg
|
||
|
qt6.qttools
|
||
|
qt6.qt5compat
|
||
|
qt6.qtwayland
|
||
|
];
|
||
|
|
||
|
meta = {
|
||
|
homepage = "https://vnotex.github.io/vnote";
|
||
|
description = "Pleasant note-taking platform";
|
||
|
mainProgram = "vnote";
|
||
|
changelog = "https://github.com/vnotex/vnote/releases/tag/${finalAttrs.src.rev}";
|
||
|
license = lib.licenses.lgpl3Plus;
|
||
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
||
|
platforms = lib.platforms.linux;
|
||
|
};
|
||
|
})
|