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
38
pkgs/development/python-modules/openant/default.nix
Normal file
38
pkgs/development/python-modules/openant/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pyusb
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
pname = "openant-unstable";
|
||||
version = "2017-02-11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Tigge";
|
||||
repo = "openant";
|
||||
rev = "ed89281e37f65d768641e87356cef38877952397";
|
||||
sha256 = "1g81l9arqdy09ijswn3sp4d6i3z18d44lzyb78bwnvdb14q22k19";
|
||||
};
|
||||
|
||||
# Removes some setup.py hacks intended to install udev rules.
|
||||
# We do the job ourselves in postInstall below.
|
||||
postPatch = ''
|
||||
sed -i -e '/cmdclass=.*/d' setup.py
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -dm755 "$out/etc/udev/rules.d"
|
||||
install -m644 resources/ant-usb-sticks.rules "$out/etc/udev/rules.d/99-ant-usb-sticks.rules"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ pyusb ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/Tigge/openant";
|
||||
description = "ANT and ANT-FS Python Library";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue