nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchzip,
5 python3,
6 help2man,
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "fead";
11 version = "1.0.0";
12
13 src = fetchzip {
14 url = "https://trong.loang.net/~cnx/fead/snapshot/fead-${finalAttrs.version}.tar.gz";
15 hash = "sha256-cbU379Zz+mwRqEHiDUlGvWheLkkr0YidHeVs/1Leg38=";
16 };
17
18 nativeBuildInputs = [ help2man ];
19 buildInputs = [ python3 ];
20
21 # Needed for man page generation in build phase
22 postPatch = ''
23 patchShebangs src/fead.py
24 '';
25
26 makeFlags = [ "PREFIX=$(out)" ];
27
28 # Already done in postPatch phase
29 dontPatchShebangs = true;
30
31 # The package has no tests.
32 doCheck = false;
33
34 meta = {
35 description = "Advert generator from web feeds";
36 homepage = "https://trong.loang.net/~cnx/fead";
37 license = lib.licenses.agpl3Plus;
38 changelog = "https://trong.loang.net/~cnx/fead/tag?h=${finalAttrs.version}";
39 maintainers = with lib.maintainers; [ McSinyx ];
40 mainProgram = "fead";
41 };
42})