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.
This commit is contained in:
parent
7675c0b2a9
commit
b747a86f8f
@ -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 }:
|
, asciidoc, docbook_xml_dtd_45, libxslt, docbook_xsl, libiconv, Security, makeWrapper }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "newsboat";
|
pname = "newsboat";
|
||||||
version = "2.17.1";
|
version = "2.17.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://newsboat.org/releases/${version}/${pname}-${version}.tar.xz";
|
owner = "newsboat";
|
||||||
sha256 = "15qr2y35yvl0hzsf34d863n8v042v78ks6ksh5p1awvi055x5sy1";
|
repo = "newsboat";
|
||||||
|
rev = "r${version}";
|
||||||
|
sha256 = "1xdy45rc3zzmf59zzszq9wpks6pvc0flmmwak39ww7laj2vgb4a7";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "0db4j6y43gacazrvcmq823fzl5pdfdlg8mkjpysrw6h9fxisq83f";
|
cargoSha256 = "0db4j6y43gacazrvcmq823fzl5pdfdlg8mkjpysrw6h9fxisq83f";
|
||||||
|
Loading…
Reference in New Issue
Block a user