nixpkgs/pkgs/servers/nitter/default.nix

49 lines
1019 B
Nix
Raw Normal View History

2021-09-02 17:11:54 +01:00
{ lib, nimPackages, nixosTests, fetchFromGitHub, libsass }:
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";
version = "unstable-2022-01-32";
2021-09-02 17:11:54 +01:00
nimBinOnly = true;
2021-07-23 17:17:25 +01:00
src = fetchFromGitHub {
owner = "zedeus";
repo = "nitter";
rev = "cdb4efadfeb5102b501c7ff79261fefc7327edb9";
sha256 = "sha256-kNK0UQd1whkaZwj98b2JYtYwjUSE1qBcAYytqnSaK1o=";
2021-07-23 17:17:25 +01:00
};
2021-09-02 17:11:54 +01:00
buildInputs = with nimPackages; [
jester
karax
sass
nimcrypto
markdown
packedjson
supersnappy
redpool
redis
zippy
flatty
jsony
2021-09-02 17:11:54 +01:00
];
postBuild = ''
nim c --hint[Processing]:off -r tools/gencss
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
'';
2021-09-02 17:11:54 +01:00
passthru.tests = { inherit (nixosTests) nitter; };
2021-08-08 14:33:08 +01:00
2021-07-23 17:17:25 +01: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 20:22:57 +01:00
mainProgram = "nitter";
2021-07-23 17:17:25 +01:00
};
}