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
63
pkgs/development/python-modules/pysc2/default.nix
Normal file
63
pkgs/development/python-modules/pysc2/default.nix
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{ buildPythonPackage
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, absl-py
|
||||
, enum34
|
||||
, future
|
||||
, mock
|
||||
, mpyq
|
||||
, numpy
|
||||
, portpicker
|
||||
, protobuf
|
||||
, pygame
|
||||
, s2clientprotocol
|
||||
, six
|
||||
, websocket-client
|
||||
, sc2-headless
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
pname = "PySC2";
|
||||
version = "1.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "deepmind";
|
||||
repo = "pysc2";
|
||||
rev = "39f84b01d662eb58b3d95791f59208c210afd4e7";
|
||||
sha256 = "0dfbc2krd2rys1ji75ng2nl0ki8nhnylxljcp287bfb8qyz2m25p";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./fix-setup-for-py3.patch
|
||||
./parameterize-runconfig-sc2path.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace "./pysc2/run_configs/platforms.py" \
|
||||
--subst-var-by 'sc2path' '${sc2-headless}'
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
absl-py
|
||||
enum34
|
||||
future
|
||||
mock
|
||||
mpyq
|
||||
numpy
|
||||
portpicker
|
||||
protobuf
|
||||
pygame
|
||||
s2clientprotocol
|
||||
six
|
||||
websocket-client
|
||||
sc2-headless
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Starcraft II environment and library for training agents.";
|
||||
homepage = "https://github.com/deepmind/pysc2";
|
||||
license = lib.licenses.asl20;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ danharaj ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue