depot/pkgs/applications/misc/dmensamenu/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

35 lines
792 B
Nix

{ 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 ];
};
}