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
36
pkgs/development/python-modules/skytemple-files/default.nix
Normal file
36
pkgs/development/python-modules/skytemple-files/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, appdirs, dungeon-eos, explorerscript
|
||||
, ndspy, pillow, setuptools, skytemple-rust, tilequant, armips
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "skytemple-files";
|
||||
version = "1.3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "SkyTemple";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-Z/jbr9o0WKPjkAsfZzxuwAKKdwYV3rLGkUMlMgyC5s0=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace skytemple_files/patch/arm_patcher.py \
|
||||
--replace "exec_name = os.getenv('SKYTEMPLE_ARMIPS_EXEC', f'{prefix}armips')" "exec_name = \"${armips}/bin/armips\""
|
||||
'';
|
||||
|
||||
buildInputs = [ armips ];
|
||||
|
||||
propagatedBuildInputs = [ appdirs dungeon-eos explorerscript ndspy pillow setuptools skytemple-rust tilequant ];
|
||||
|
||||
doCheck = false; # requires Pokémon Mystery Dungeon ROM
|
||||
pythonImportsCheck = [ "skytemple_files" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/SkyTemple/skytemple-files";
|
||||
description = "Python library to edit the ROM of Pokémon Mystery Dungeon Explorers of Sky";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ xfix marius851000 ];
|
||||
broken = stdenv.isDarwin; # pyobjc is missing
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue