nixpkgs/pkgs/applications/misc/fead/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
916 B
Nix
Raw Normal View History

2024-01-10 06:46:48 +03:00
{ lib, stdenv, fetchzip, python3, help2man }:
2022-11-09 01:49:09 +03:00
stdenv.mkDerivation rec {
pname = "fead";
2024-01-10 06:46:48 +03:00
version = "1.0.0";
2022-11-09 01:49:09 +03:00
2024-01-10 06:46:48 +03:00
src = fetchzip {
url = "https://trong.loang.net/~cnx/fead/snapshot/fead-${version}.tar.gz";
hash = "sha256-cbU379Zz+mwRqEHiDUlGvWheLkkr0YidHeVs/1Leg38=";
2022-11-09 01:49:09 +03:00
};
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";
2024-01-10 06:46:48 +03:00
homepage = "https://trong.loang.net/~cnx/fead";
2022-11-09 01:49:09 +03:00
license = licenses.agpl3Plus;
2024-01-10 06:46:48 +03:00
changelog = "https://trong.loang.net/~cnx/fead/tag?h=${version}";
2022-11-09 01:49:09 +03:00
maintainers = with maintainers; [ McSinyx ];
2024-02-11 05:19:15 +03:00
mainProgram = "fead";
2022-11-09 01:49:09 +03:00
};
}