Commit 51a01a7e authored by Arthur's avatar Arthur Committed by Anderson Torres
Browse files

newsraft: init at 0.21



Fix the test. by-name packages should not worry about all-packages.nix.

Update pkgs/by-name/ne/newsraft/package.nix

Co-authored-by: default avatarIogaMaster <67164465+IogaMaster@users.noreply.github.com>
parent 2c06b55f
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitea
, pkg-config
, curl
, expat
, gumbo
, ncurses
, sqlite
, yajl
}:

stdenv.mkDerivation rec {
  pname = "newsraft";
  version = "0.21";

  src = fetchFromGitea {
    domain = "codeberg.org";
    owner = "grisha";
    repo = "newsraft";
    rev = "newsraft-${version}";
    hash = "sha256-vnLlozzPIk3F2U2ZvOClHnpmkXx4fc0pM1X4hFXM2Pg=";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ curl expat gumbo ncurses sqlite yajl ];

  makeFlags = [ "PREFIX=$(out)" ];

  meta = with lib; {
    description = "Feed reader for terminal";
    homepage = "https://codeberg.org/grisha/newsraft";
    license = licenses.isc;
    maintainers = with maintainers; [ arthsmn ];
    mainProgram = "newsraft";
    platforms = platforms.all;
  };
}