Merge pull request #153089 from legendofmiracles/wiki-tui

authored by legendofmiracles and committed by GitHub 42bee8ec c0575333

+12 -8
+12 -8
pkgs/misc/wiki-tui/default.nix
··· 1 - { lib, rustPlatform, fetchFromGitHub, ncurses, openssl, pkg-config, stdenv, nix-update-script, Security }: 1 + { lib, rustPlatform, fetchFromGitHub, ncurses, openssl, pkg-config, stdenv, Security, fetchpatch }: 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "wiki-tui"; 5 - version = "0.4.2"; 5 + version = "0.4.3"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "Builditluc"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-TWpCmHG07dv0/hXGpo71Ie0uDRqs6yywHzcv0Hpi8Sc="; 11 + sha256 = "sha256-maN/0lJx6/lj3Zn+IZcPJFPPFVLbnpwxeMSTyzKYX6s="; 12 12 }; 13 13 14 + # latest update forgot to include cargo.lock update 15 + cargoPatches = [ 16 + (fetchpatch { 17 + url = "https://github.com/Builditluc/wiki-tui/commit/87993eaca35a14afc1fb557482b099a6dd2da911.patch"; 18 + sha256 = "sha256-n04FCZwQ9pPanz9QQY/7Apyoy6lG0t/23S40p4c/TXw="; 19 + }) 20 + ]; 21 + 14 22 buildInputs = [ ncurses openssl ] ++ lib.optional stdenv.isDarwin Security; 15 23 16 24 nativeBuildInputs = [ pkg-config ]; 17 25 18 - cargoSha256 = "sha256-tJhbIsmh4zw1Dhvc2jE0N1cTE4//DOe3rDzDVNiTigA="; 19 - 20 - passthru.updateScript = nix-update-script { 21 - attrPath = pname; 22 - }; 26 + cargoSha256 = "sha256-x4oS9IBF2GMcilv9Oi/IeFaCM3sxWn7PpkKcaeSqIog="; 23 27 24 28 meta = with lib; { 25 29 description = "A simple and easy to use Wikipedia Text User Interface";