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
42
pkgs/servers/persistent-evdev/default.nix
Normal file
42
pkgs/servers/persistent-evdev/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub, python3Packages }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "persistent-evdev";
|
||||
version = "unstable-2022-05-07";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aiberia";
|
||||
repo = pname;
|
||||
rev = "52bf246464e09ef4e6f2e1877feccc7b9feba164";
|
||||
sha256 = "d0i6DL/qgDELet4ew2lyVqzd9TApivRxL3zA3dcsQXY=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
evdev pyudev
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs bin/persistent-evdev.py
|
||||
'';
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp bin/persistent-evdev.py $out/bin
|
||||
|
||||
mkdir -p $out/etc/udev/rules.d
|
||||
cp udev/60-persistent-input-uinput.rules $out/etc/udev/rules.d
|
||||
'';
|
||||
|
||||
# has no tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/aiberia/persistent-evdev";
|
||||
description = "Persistent virtual input devices for qemu/libvirt/evdev hotplug support";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.lodi ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue