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
47
pkgs/development/python-modules/python-vlc/default.nix
Normal file
47
pkgs/development/python-modules/python-vlc/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, setuptools
|
||||
, libvlc
|
||||
, substituteAll
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-vlc";
|
||||
version = "3.0.16120";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-kvmP7giPcr1tBjs7MxLQvSmzfnrWXd6zpzAzIDAMKAc=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Patch path for VLC
|
||||
(substituteAll {
|
||||
src = ./vlc-paths.patch;
|
||||
libvlcPath="${libvlc}/lib/libvlc.so.5";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
# Module has no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"vlc"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python bindings for VLC, the cross-platform multimedia player and framework";
|
||||
homepage = "https://wiki.videolan.org/PythonBinding";
|
||||
license = licenses.lgpl21Plus;
|
||||
maintainers = with maintainers; [ tbenst ];
|
||||
};
|
||||
}
|
||||
13
pkgs/development/python-modules/python-vlc/vlc-paths.patch
Normal file
13
pkgs/development/python-modules/python-vlc/vlc-paths.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/vlc.py b/vlc.py
|
||||
index e3245a5..cebec09 100644
|
||||
--- a/vlc.py
|
||||
+++ b/vlc.py
|
||||
@@ -190,7 +190,7 @@ def find_lib():
|
||||
|
||||
else:
|
||||
# All other OSes (linux, freebsd...)
|
||||
- p = find_library('vlc')
|
||||
+ p = "@libvlcPath@"
|
||||
try:
|
||||
dll = ctypes.CDLL(p)
|
||||
except OSError: # may fail
|
||||
Loading…
Add table
Add a link
Reference in a new issue