2021-09-02 16:11:54 +00:00
|
|
|
{ lib, nimPackages, nixosTests, fetchFromGitHub, libsass }:
|
2021-07-23 16:17:25 +00:00
|
|
|
|
2021-09-02 16:11:54 +00:00
|
|
|
nimPackages.buildNimPackage rec {
|
2021-07-23 16:17:25 +00:00
|
|
|
pname = "nitter";
|
2022-04-04 18:33:32 +00:00
|
|
|
version = "unstable-2022-03-21";
|
2021-09-02 16:11:54 +00:00
|
|
|
nimBinOnly = true;
|
2021-07-23 16:17:25 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zedeus";
|
|
|
|
repo = "nitter";
|
2022-04-04 18:33:32 +00:00
|
|
|
rev = "6884f05041a9b8619ec709afacdfdd6482a120a0";
|
|
|
|
sha256 = "1mnc6jqljpqp9lgcrxxvf3aiswssr34v139cxfbwlmj45swmsazh";
|
2021-07-23 16:17:25 +00:00
|
|
|
};
|
|
|
|
|
2021-09-02 16:11:54 +00:00
|
|
|
buildInputs = with nimPackages; [
|
|
|
|
jester
|
|
|
|
karax
|
|
|
|
sass
|
|
|
|
nimcrypto
|
|
|
|
markdown
|
|
|
|
packedjson
|
|
|
|
supersnappy
|
|
|
|
redpool
|
|
|
|
redis
|
2022-01-21 15:18:25 +00:00
|
|
|
zippy
|
|
|
|
flatty
|
|
|
|
jsony
|
2021-09-02 16:11:54 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
nim c --hint[Processing]:off -r tools/gencss
|
2021-07-23 16:17:25 +00:00
|
|
|
'';
|
|
|
|
|
2021-09-02 16:11:54 +00:00
|
|
|
postInstall = ''
|
2021-07-23 16:17:25 +00:00
|
|
|
mkdir -p $out/share/nitter
|
|
|
|
cp -r public $out/share/nitter/public
|
|
|
|
'';
|
|
|
|
|
2021-09-02 16:11:54 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) nitter; };
|
2021-08-08 13:33:08 +00:00
|
|
|
|
2021-07-23 16:17:25 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Alternative Twitter front-end";
|
|
|
|
homepage = "https://github.com/zedeus/nitter";
|
|
|
|
maintainers = with maintainers; [ erdnaxe ];
|
|
|
|
license = licenses.agpl3Only;
|
2021-10-08 19:22:57 +00:00
|
|
|
mainProgram = "nitter";
|
2021-07-23 16:17:25 +00:00
|
|
|
};
|
|
|
|
}
|