Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

65 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
pkg-config,
cmake,
hunspell,
qtbase,
qtmultimedia,
qttools,
qt5compat,
qtwayland,
wrapQtAppsHook,
}:
stdenv.mkDerivation rec {
pname = "focuswriter";
version = "1.8.11";
src = fetchFromGitHub {
owner = "gottcode";
repo = "focuswriter";
rev = "v${version}";
hash = "sha256-oivhrDF3HikbEtS1cOlHwmQYNYf3IkX+gQGW0V55IWU=";
};
patches = [
# Fix build, remove at next version bump
# https://github.com/gottcode/focuswriter/pull/208
(fetchpatch {
url = "https://github.com/gottcode/focuswriter/commit/dd74ed4559a141653a06e7984c1251b992925775.diff";
hash = "sha256-1bxa91xnkF1MIQlA8JgwPHW/A80ThbVVdVtusmzd22I=";
})
];
nativeBuildInputs = [
pkg-config
cmake
qttools
wrapQtAppsHook
];
buildInputs = [
hunspell
qtbase
qtmultimedia
qt5compat
qtwayland
];
installFlags = [ "INSTALL_ROOT=$(out)" ];
meta = with lib; {
description = "Simple, distraction-free writing environment";
license = licenses.gpl3Plus;
maintainers = with maintainers; [
madjar
kashw2
];
platforms = platforms.linux;
homepage = "https://gottcode.org/focuswriter/";
mainProgram = "focuswriter";
};
}