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
33
pkgs/development/python-modules/mpv/default.nix
Normal file
33
pkgs/development/python-modules/mpv/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, python, isPy27
|
||||
, mpv
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mpv";
|
||||
version = "0.5.2";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jaseg";
|
||||
repo = "python-mpv";
|
||||
rev = "v${version}";
|
||||
sha256 = "0ffskpynhl1252h6a05087lvpjgn1cn2z3caiv3i666dn1n79fjd";
|
||||
};
|
||||
|
||||
buildInputs = [ mpv ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace mpv.py \
|
||||
--replace "sofile = ctypes.util.find_library('mpv')" \
|
||||
'sofile = "${mpv}/lib/libmpv${stdenv.targetPlatform.extensions.sharedLibrary}"'
|
||||
'';
|
||||
|
||||
# tests impure, will error if it can't load libmpv.so
|
||||
checkPhase = "${python.interpreter} -c 'import mpv'";
|
||||
|
||||
meta = with lib; {
|
||||
description = "A python interface to the mpv media player";
|
||||
homepage = "https://github.com/jaseg/python-mpv";
|
||||
license = licenses.agpl3Plus;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue