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/glcontext/default.nix
Normal file
47
pkgs/development/python-modules/glcontext/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy3k
|
||||
, libGL
|
||||
, libX11
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "glcontext";
|
||||
version = "2.3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "moderngl";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
sha256 = "sha256-fE1fyoKQz1jmTBcAz2CbkLjRfgN5QedpMOLMU8keIZs=";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
buildInputs = [ libGL libX11 ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace glcontext/x11.cpp \
|
||||
--replace '"libGL.so"' '"${libGL}/lib/libGL.so"' \
|
||||
--replace '"libX11.so"' '"${libX11}/lib/libX11.so"'
|
||||
substituteInPlace glcontext/egl.cpp \
|
||||
--replace '"libGL.so"' '"${libGL}/lib/libGL.so"' \
|
||||
--replace '"libEGL.so"' '"${libGL}/lib/libEGL.so"'
|
||||
'';
|
||||
|
||||
# Tests fail because they try to open display. See
|
||||
# https://github.com/NixOS/nixpkgs/pull/121439
|
||||
# for details.
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "glcontext" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/moderngl/glcontext";
|
||||
description = "OpenGL implementation for ModernGL";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ friedelino ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue