diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/dmensamenu/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/misc/dmensamenu/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/dmensamenu/default.nix b/nixpkgs/pkgs/applications/misc/dmensamenu/default.nix new file mode 100644 index 000000000000..a0b4237c7f67 --- /dev/null +++ b/nixpkgs/pkgs/applications/misc/dmensamenu/default.nix @@ -0,0 +1,34 @@ +{ lib, stdenv, buildPythonApplication, fetchFromGitHub, substituteAll, requests, dmenu }: + +buildPythonApplication rec { + pname = "dmensamenu"; + version = "1.2.1"; + + src = fetchFromGitHub { + owner = "dotlambda"; + repo = "dmensamenu"; + rev = version; + sha256 = "15c8g2vdban3dw3g979icypgpx52irpvv39indgk19adicgnzzqp"; + }; + + 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"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} |