From 1c3dea1aebc827c935933bd34e3212adab0465ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Wed, 9 Nov 2022 07:49:09 +0900 Subject: [PATCH] fead: init at 0.1.3 --- pkgs/applications/misc/fead/default.nix | 37 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/applications/misc/fead/default.nix diff --git a/pkgs/applications/misc/fead/default.nix b/pkgs/applications/misc/fead/default.nix new file mode 100644 index 000000000000..bfd645c43313 --- /dev/null +++ b/pkgs/applications/misc/fead/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ab1d60a1ad31..777908dfce09 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };