depot/third_party/nixpkgs/pkgs/servers/nitter/default.nix
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

48 lines
1,020 B
Nix

{ lib, nimPackages, nixosTests, fetchFromGitHub, libsass }:
nimPackages.buildNimPackage rec {
pname = "nitter";
version = "unstable-2022-02-11";
nimBinOnly = true;
src = fetchFromGitHub {
owner = "zedeus";
repo = "nitter";
rev = "6695784050605c77a301c0a66764fa9a9580a2f5";
sha256 = "1lddzf6m74bw5kkv465cp211xxqbwnfacav7ia3y9i38rrnqwk6m";
};
buildInputs = with nimPackages; [
jester
karax
sass
nimcrypto
markdown
packedjson
supersnappy
redpool
redis
zippy
flatty
jsony
];
postBuild = ''
nim c --hint[Processing]:off -r tools/gencss
'';
postInstall = ''
mkdir -p $out/share/nitter
cp -r public $out/share/nitter/public
'';
passthru.tests = { inherit (nixosTests) nitter; };
meta = with lib; {
description = "Alternative Twitter front-end";
homepage = "https://github.com/zedeus/nitter";
maintainers = with maintainers; [ erdnaxe ];
license = licenses.agpl3Only;
mainProgram = "nitter";
};
}