From 714fb0684e9e65852857420b42f722529d358839 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Wed, 2 Aug 2023 14:31:42 +0100 Subject: [PATCH] nitter: build with Nim-2 --- pkgs/servers/nitter/default.nix | 19 +++++++++++++++++-- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/nitter/default.nix b/pkgs/servers/nitter/default.nix index fb0f797457b9..a282565ddfe3 100644 --- a/pkgs/servers/nitter/default.nix +++ b/pkgs/servers/nitter/default.nix @@ -1,12 +1,25 @@ { lib +, buildNimPackage , fetchFromGitHub , nimPackages , nixosTests , substituteAll , unstableGitUpdater +, flatty +, jester +, jsony +, karax +, markdown +, nimcrypto +, packedjson +, redis +, redpool +, sass +, supersnappy +, zippy }: -nimPackages.buildNimPackage rec { +buildNimPackage rec { pname = "nitter"; version = "unstable-2023-07-21"; @@ -26,7 +39,7 @@ nimPackages.buildNimPackage rec { }) ]; - buildInputs = with nimPackages; [ + buildInputs = [ flatty jester jsony @@ -43,6 +56,8 @@ nimPackages.buildNimPackage rec { nimBinOnly = true; + nimFlags = [ "--mm:refc" ]; + postBuild = '' nim c --hint[Processing]:off -r tools/gencss nim c --hint[Processing]:off -r tools/rendermd diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4ea4a7f4a6d6..61be873a874e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11042,7 +11042,7 @@ with pkgs; nifi = callPackage ../servers/web-apps/nifi { }; - nitter = callPackage ../servers/nitter { }; + nitter = nim2Packages.callPackage ../servers/nitter { }; noip = callPackage ../tools/networking/noip { };