mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
50 lines
916 B
Nix
50 lines
916 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
cmake,
|
|
hunspell,
|
|
qt6,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "focuswriter";
|
|
version = "1.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gottcode";
|
|
repo = "focuswriter";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-Rr2v9WpyeE57uikPGvbS58Zzhb1NAIAUMblF8LWIcVo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
cmake
|
|
qt6.qttools
|
|
qt6.wrapQtAppsHook
|
|
];
|
|
buildInputs = [
|
|
hunspell
|
|
qt6.qtbase
|
|
qt6.qtmultimedia
|
|
qt6.qt5compat
|
|
qt6.qtwayland
|
|
];
|
|
|
|
installFlags = [ "INSTALL_ROOT=$(out)" ];
|
|
|
|
meta = {
|
|
description = "Simple, distraction-free writing environment";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [
|
|
madjar
|
|
kashw2
|
|
];
|
|
platforms = lib.platforms.linux;
|
|
homepage = "https://gottcode.org/focuswriter/";
|
|
mainProgram = "focuswriter";
|
|
};
|
|
})
|