From 256814f16e6c77a9cffc9a14fa0db38c05010fce Mon Sep 17 00:00:00 2001 From: kashw2 Date: Mon, 4 Sep 2023 00:45:02 +1000 Subject: [PATCH] focuswriter: switch from `fetchurl` to `fetchFromGitHub` --- pkgs/applications/editors/focuswriter/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/editors/focuswriter/default.nix b/pkgs/applications/editors/focuswriter/default.nix index b47ec49d5492..025f42d4113a 100644 --- a/pkgs/applications/editors/focuswriter/default.nix +++ b/pkgs/applications/editors/focuswriter/default.nix @@ -1,6 +1,6 @@ { lib , stdenv -, fetchurl +, fetchFromGitHub , pkg-config , cmake , hunspell @@ -14,15 +14,16 @@ stdenv.mkDerivation rec { pname = "focuswriter"; version = "1.8.5"; - src = fetchurl { - url = "https://gottcode.org/focuswriter/focuswriter-${version}.tar.bz2"; - sha256 = "sha256-O0GHzpA8Vap/rWiLF2j9zMyfAm2ko1Vk3KqZyyvudlQ="; + src = fetchFromGitHub { + owner = "gottcode"; + repo = "focuswriter"; + rev = "v${version}"; + hash = "sha256-6wvTlC/NCCcN2jpwqtoOsCln3ViY/vj7NpMsbYHBGiI="; }; nativeBuildInputs = [ pkg-config cmake qttools ]; buildInputs = [ hunspell qtbase qtmultimedia qt5compat ]; - # Causes an error during compilation if not set dontWrapQtApps = true; installFlags = [ "INSTALL_ROOT=$(out)" ];