diff options
author | Timo Kaufmann <timokau@zoho.com> | 2019-12-22 16:31:10 +0100 |
---|---|---|
committer | Timo Kaufmann <timokau@zoho.com> | 2019-12-22 16:31:10 +0100 |
commit | b747a86f8f33cd5923c65a6d15fc0978edf0a934 (patch) | |
tree | 2565c9238f2dda37f4de6b28f7d848c44fc849cc /pkgs | |
parent | 7675c0b2a98f60f8ac85208af9a716939ce29cd4 (diff) | |
download | nixpkgs-b747a86f8f33cd5923c65a6d15fc0978edf0a934.tar nixpkgs-b747a86f8f33cd5923c65a6d15fc0978edf0a934.tar.gz nixpkgs-b747a86f8f33cd5923c65a6d15fc0978edf0a934.tar.bz2 nixpkgs-b747a86f8f33cd5923c65a6d15fc0978edf0a934.tar.lz nixpkgs-b747a86f8f33cd5923c65a6d15fc0978edf0a934.tar.xz nixpkgs-b747a86f8f33cd5923c65a6d15fc0978edf0a934.tar.zst nixpkgs-b747a86f8f33cd5923c65a6d15fc0978edf0a934.zip |
newsboat: fetch from vcs
In hopes of working around https://github.com/NixOS/nixpkgs/issues/60845. This fetches a gz archive instead of xz and also fetches the archive from a different source, hopefully avoiding the issue (whatever ist is caused by). In addition to that, I think that building directly from VCS is generally cleaner and more flexible for the following reasons: - It cuts out and unnecessary middle step. - It makes sure the version users install is equal to the version users may have vetted. - It makes it easy to develop patches or bisect changes by simply checking out a different rev. - It avoids using upstream-provided "binary" artifacts like those generated by autotools.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/networking/feedreaders/newsboat/default.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/applications/networking/feedreaders/newsboat/default.nix b/pkgs/applications/networking/feedreaders/newsboat/default.nix index 8ff8041e467..a4b78110d33 100644 --- a/pkgs/applications/networking/feedreaders/newsboat/default.nix +++ b/pkgs/applications/networking/feedreaders/newsboat/default.nix @@ -1,13 +1,15 @@ -{ stdenv, rustPlatform, fetchurl, stfl, sqlite, curl, gettext, pkgconfig, libxml2, json_c, ncurses +{ stdenv, rustPlatform, fetchFromGitHub, stfl, sqlite, curl, gettext, pkgconfig, libxml2, json_c, ncurses , asciidoc, docbook_xml_dtd_45, libxslt, docbook_xsl, libiconv, Security, makeWrapper }: rustPlatform.buildRustPackage rec { pname = "newsboat"; version = "2.17.1"; - src = fetchurl { - url = "https://newsboat.org/releases/${version}/${pname}-${version}.tar.xz"; - sha256 = "15qr2y35yvl0hzsf34d863n8v042v78ks6ksh5p1awvi055x5sy1"; + src = fetchFromGitHub { + owner = "newsboat"; + repo = "newsboat"; + rev = "r${version}"; + sha256 = "1xdy45rc3zzmf59zzszq9wpks6pvc0flmmwak39ww7laj2vgb4a7"; }; cargoSha256 = "0db4j6y43gacazrvcmq823fzl5pdfdlg8mkjpysrw6h9fxisq83f"; |