about summary refs log tree commit diff
path: root/pkgs/applications/misc/dmensamenu/default.nix
blob: 75c9302e0791681bc9728cb3f3103ccf070f0e84 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib, buildPythonApplication, fetchFromGitHub, substituteAll, requests, dmenu }:

buildPythonApplication rec {
  pname = "dmensamenu";
  version = "1.2.2";

  src = fetchFromGitHub {
    owner = "dotlambda";
    repo = "dmensamenu";
    rev = version;
    sha256 = "1ck1i1k40bli6m3n49ff6987hglby9fn4vfr28jpkm3h70s2km3n";
  };

  patches = [
    (substituteAll {
      src = ./dmenu-path.patch;
      inherit dmenu;
    })
  ];

  propagatedBuildInputs = [
    requests
  ];

  # No tests implemented
  doCheck = false;

  meta = with lib; {
    homepage = "https://github.com/dotlambda/dmensamenu";
    description = "Print German canteen menus using dmenu and OpenMensa";
    mainProgram = "dmensamenu";
    license = licenses.mit;
    maintainers = with maintainers; [ dotlambda ];
  };
}