nixpkgs/pkgs/servers/nitter/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.0 KiB
Nix
Raw Normal View History

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