2021-09-23 15:35:13 +00:00
|
|
|
{ lib, nimPackages, nixosTests, fetchFromGitHub, libsass }:
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2021-09-23 15:35:13 +00:00
|
|
|
nimPackages.buildNimPackage rec {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "nitter";
|
|
|
|
version = "unstable-2021-07-18";
|
2021-09-23 15:35:13 +00:00
|
|
|
nimBinOnly = true;
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zedeus";
|
|
|
|
repo = "nitter";
|
|
|
|
rev = "6c5cb01b294d4f6e3b438fc47683359eb0fe5057";
|
|
|
|
sha256 = "1dl8ndyv8m1hnydrp5xilcpp2cfbp02d5jap3y42i4nazc9ar6p4";
|
|
|
|
};
|
|
|
|
|
2021-09-23 15:35:13 +00:00
|
|
|
buildInputs = with nimPackages; [
|
|
|
|
jester
|
|
|
|
karax
|
|
|
|
sass
|
|
|
|
regex
|
|
|
|
unicodedb
|
|
|
|
unicodeplus
|
|
|
|
segmentation
|
|
|
|
nimcrypto
|
|
|
|
markdown
|
|
|
|
packedjson
|
|
|
|
supersnappy
|
|
|
|
redpool
|
|
|
|
frosty
|
|
|
|
redis
|
|
|
|
];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
nim c --hint[Processing]:off -r tools/gencss
|
2021-08-05 21:33:18 +00:00
|
|
|
'';
|
|
|
|
|
2021-09-23 15:35:13 +00:00
|
|
|
postInstall = ''
|
2021-08-05 21:33:18 +00:00
|
|
|
mkdir -p $out/share/nitter
|
|
|
|
cp -r public $out/share/nitter/public
|
|
|
|
'';
|
|
|
|
|
2021-09-23 15:35:13 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) nitter; };
|
2021-08-08 23:34:03 +00:00
|
|
|
|
2021-08-05 21:33:18 +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-09 14:59:57 +00:00
|
|
|
mainProgram = "nitter";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
}
|