2021-09-02 18:11:54 +02:00
|
|
|
{ lib, nimPackages, nixosTests, fetchFromGitHub, libsass }:
|
2021-07-23 18:17:25 +02:00
|
|
|
|
2021-09-02 18:11:54 +02:00
|
|
|
nimPackages.buildNimPackage rec {
|
2021-07-23 18:17:25 +02:00
|
|
|
pname = "nitter";
|
2022-05-15 23:51:18 +02:00
|
|
|
version = "unstable-2022-05-13";
|
2021-09-02 18:11:54 +02:00
|
|
|
nimBinOnly = true;
|
2021-07-23 18:17:25 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zedeus";
|
|
|
|
repo = "nitter";
|
2022-05-15 23:51:18 +02:00
|
|
|
rev = "683c052036b268028f0ecae020a1519bc586516d";
|
|
|
|
sha256 = "179z66jlwbdarrgvpdh8aqy2ihkiakd22wqydrfgpsgr59ma8fgl";
|
2021-07-23 18:17:25 +02:00
|
|
|
};
|
|
|
|
|
2021-09-02 18:11:54 +02:00
|
|
|
buildInputs = with nimPackages; [
|
|
|
|
jester
|
|
|
|
karax
|
|
|
|
sass
|
|
|
|
nimcrypto
|
|
|
|
markdown
|
|
|
|
packedjson
|
|
|
|
supersnappy
|
|
|
|
redpool
|
|
|
|
redis
|
2022-01-21 16:18:25 +01:00
|
|
|
zippy
|
|
|
|
flatty
|
|
|
|
jsony
|
2021-09-02 18:11:54 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
nim c --hint[Processing]:off -r tools/gencss
|
2022-05-15 22:41:01 +02:00
|
|
|
nim c --hint[Processing]:off -r tools/rendermd
|
2021-07-23 18:17:25 +02:00
|
|
|
'';
|
|
|
|
|
2021-09-02 18:11:54 +02:00
|
|
|
postInstall = ''
|
2021-07-23 18:17:25 +02:00
|
|
|
mkdir -p $out/share/nitter
|
|
|
|
cp -r public $out/share/nitter/public
|
|
|
|
'';
|
|
|
|
|
2021-09-02 18:11:54 +02:00
|
|
|
passthru.tests = { inherit (nixosTests) nitter; };
|
2021-08-08 15:33:08 +02:00
|
|
|
|
2021-07-23 18:17:25 +02: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 21:22:57 +02:00
|
|
|
mainProgram = "nitter";
|
2021-07-23 18:17:25 +02:00
|
|
|
};
|
|
|
|
}
|