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
46
pkgs/misc/flashfocus/default.nix
Normal file
46
pkgs/misc/flashfocus/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib, python3, netcat-openbsd }:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "flashfocus";
|
||||
version = "2.2.3";
|
||||
|
||||
src = python3.pkgs.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0cn44hryvz2wl7xklaslxsb3l2i3f8jkgmml0n9v2ks22j5l4r4h";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "pyyaml>=5.1,<6.0" "pyyaml>=5.1"
|
||||
|
||||
substituteInPlace bin/nc_flash_window \
|
||||
--replace "nc" "${lib.getExe netcat-openbsd}"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = with python3.pkgs; [
|
||||
pytest-runner
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
i3ipc
|
||||
xcffib
|
||||
click
|
||||
cffi
|
||||
xpybutil
|
||||
marshmallow
|
||||
pyyaml
|
||||
];
|
||||
|
||||
# Tests require access to a X session
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "flashfocus" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/fennerm/flashfocus";
|
||||
description = "Simple focus animations for tiling window managers";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ artturin ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue