Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 64 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 pkg-config, 7 cmake, 8 hunspell, 9 qtbase, 10 qtmultimedia, 11 qttools, 12 qt5compat, 13 qtwayland, 14 wrapQtAppsHook, 15}: 16 17stdenv.mkDerivation rec { 18 pname = "focuswriter"; 19 version = "1.8.11"; 20 21 src = fetchFromGitHub { 22 owner = "gottcode"; 23 repo = "focuswriter"; 24 rev = "v${version}"; 25 hash = "sha256-oivhrDF3HikbEtS1cOlHwmQYNYf3IkX+gQGW0V55IWU="; 26 }; 27 28 patches = [ 29 # Fix build, remove at next version bump 30 # https://github.com/gottcode/focuswriter/pull/208 31 (fetchpatch { 32 url = "https://github.com/gottcode/focuswriter/commit/dd74ed4559a141653a06e7984c1251b992925775.diff"; 33 hash = "sha256-1bxa91xnkF1MIQlA8JgwPHW/A80ThbVVdVtusmzd22I="; 34 }) 35 ]; 36 37 nativeBuildInputs = [ 38 pkg-config 39 cmake 40 qttools 41 wrapQtAppsHook 42 ]; 43 buildInputs = [ 44 hunspell 45 qtbase 46 qtmultimedia 47 qt5compat 48 qtwayland 49 ]; 50 51 installFlags = [ "INSTALL_ROOT=$(out)" ]; 52 53 meta = with lib; { 54 description = "Simple, distraction-free writing environment"; 55 license = licenses.gpl3Plus; 56 maintainers = with maintainers; [ 57 madjar 58 kashw2 59 ]; 60 platforms = platforms.linux; 61 homepage = "https://gottcode.org/focuswriter/"; 62 mainProgram = "focuswriter"; 63 }; 64}