uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
34
pkgs/applications/misc/dmensamenu/default.nix
Normal file
34
pkgs/applications/misc/dmensamenu/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ 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";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
||||
13
pkgs/applications/misc/dmensamenu/dmenu-path.patch
Normal file
13
pkgs/applications/misc/dmensamenu/dmenu-path.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/dmensamenu/dmensamenu.py b/dmensamenu/dmensamenu.py
|
||||
index 7df49f2..052ef1b 100644
|
||||
--- a/dmensamenu/dmensamenu.py
|
||||
+++ b/dmensamenu/dmensamenu.py
|
||||
@@ -99,7 +99,7 @@ def main():
|
||||
parser.add_argument('--city',
|
||||
help='When searching for a canteen, only show the ones from the city specified'
|
||||
+' (case-insensitive).')
|
||||
- parser.add_argument('--dmenu', metavar='CMD', default='dmenu -i -l "$lines" -p "$date"',
|
||||
+ parser.add_argument('--dmenu', metavar='CMD', default='@dmenu@/bin/dmenu -i -l "$lines" -p "$date"',
|
||||
help='Command to execute. '
|
||||
'Can be used to pass custom parameters to dmenu. '
|
||||
'The shell variable $lines will be set to the number of items on the menu '
|
||||
Loading…
Add table
Add a link
Reference in a new issue