nitter: unstable-2023-07-10 -> unstable-2023-07-21

- update to unstable-2023-07-21
- add updateScript
This commit is contained in:
squalus 2023-07-21 10:46:16 -07:00
parent bc7a300e28
commit 5aa3c52e11

View file

@ -3,17 +3,18 @@
, nimPackages , nimPackages
, nixosTests , nixosTests
, substituteAll , substituteAll
, unstableGitUpdater
}: }:
nimPackages.buildNimPackage rec { nimPackages.buildNimPackage rec {
pname = "nitter"; pname = "nitter";
version = "unstable-2023-07-10"; version = "unstable-2023-07-21";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "zedeus"; owner = "zedeus";
repo = "nitter"; repo = "nitter";
rev = "0bc3c153d9b38a3c02f321fb64a375fef6b97e8e"; rev = "cc5841df308506356d329662d0f0c2ec4713a35c";
hash = "sha256-msx14FZl2uRZvZjTlF7c3Va742HhiU6R2jdh4neIEV4="; hash = "sha256-QuWLoKy7suUCTYK79ghdf3o/FGFIDNyN1Iu69DFp6wg=";
}; };
patches = [ patches = [
@ -52,6 +53,11 @@ nimPackages.buildNimPackage rec {
cp -r public $out/share/nitter/public cp -r public $out/share/nitter/public
''; '';
passthru = {
tests = { inherit (nixosTests) nitter; };
updateScript = unstableGitUpdater {};
};
meta = with lib; { meta = with lib; {
homepage = "https://github.com/zedeus/nitter"; homepage = "https://github.com/zedeus/nitter";
description = "Alternative Twitter front-end"; description = "Alternative Twitter front-end";
@ -59,6 +65,4 @@ nimPackages.buildNimPackage rec {
maintainers = with maintainers; [ erdnaxe infinidoge ]; maintainers = with maintainers; [ erdnaxe infinidoge ];
mainProgram = "nitter"; mainProgram = "nitter";
}; };
passthru.tests = { inherit (nixosTests) nitter; };
} }