mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
40 lines
873 B
Nix
40 lines
873 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, cmake
|
|
, hunspell
|
|
, qtbase
|
|
, qtmultimedia
|
|
, qttools
|
|
, qt5compat
|
|
, qtwayland
|
|
, wrapQtAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "focuswriter";
|
|
version = "1.8.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gottcode";
|
|
repo = "focuswriter";
|
|
rev = "v${version}";
|
|
hash = "sha256-FFfNjjVwi0bE6oc8LYhXrCKd+nwRQrjWzK5P4DSIIgs=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|