fead: init at 0.1.3

This commit is contained in:
Nguyễn Gia Phong 2022-11-09 07:49:09 +09:00
parent 28319deb5a
commit 1c3dea1aeb
No known key found for this signature in database
GPG Key ID: 27148B2C06A2224B
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ lib, stdenv, fetchFromSourcehut, python3, help2man }:
stdenv.mkDerivation rec {
pname = "fead";
version = "0.1.3";
src = fetchFromSourcehut {
owner = "~cnx";
repo = pname;
rev = version;
sha256 = "sha256-cW0GxyvC9url2QAAWD0M2pR4gBiPA3eeAaw77TwMV/0=";
};
nativeBuildInputs = [ help2man ];
buildInputs = [ python3 ];
# Needed for man page generation in build phase
postPatch = ''
patchShebangs src/fead.py
'';
makeFlags = [ "PREFIX=$(out)" ];
# Already done in postPatch phase
dontPatchShebangs = true;
# The package has no tests.
doCheck = false;
meta = with lib; {
description = "Advert generator from web feeds";
homepage = "https://git.sr.ht/~cnx/fead";
license = licenses.agpl3Plus;
changelog = "https://git.sr.ht/~cnx/fead/refs/${version}";
maintainers = with maintainers; [ McSinyx ];
};
}

View File

@ -7357,6 +7357,8 @@ with pkgs;
fdk-aac-encoder = callPackage ../applications/audio/fdkaac { };
fead = callPackage ../applications/misc/fead { };
feedgnuplot = callPackage ../tools/graphics/feedgnuplot { };
fbcat = callPackage ../tools/misc/fbcat { };