1 { lib, stdenv, fetchFromSourcehut, python3, help2man }:
3 stdenv.mkDerivation rec {
7 src = fetchFromSourcehut {
11 sha256 = "sha256-cW0GxyvC9url2QAAWD0M2pR4gBiPA3eeAaw77TwMV/0=";
14 nativeBuildInputs = [ help2man ];
15 buildInputs = [ python3 ];
17 # Needed for man page generation in build phase
19 patchShebangs src/fead.py
22 makeFlags = [ "PREFIX=$(out)" ];
24 # Already done in postPatch phase
25 dontPatchShebangs = true;
27 # The package has no tests.
31 description = "Advert generator from web feeds";
32 homepage = "https://git.sr.ht/~cnx/fead";
33 license = licenses.agpl3Plus;
34 changelog = "https://git.sr.ht/~cnx/fead/refs/${version}";
35 maintainers = with maintainers; [ McSinyx ];