-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pyproject.nix pkg, all pkgs rewritten
- Loading branch information
1 parent
1320f6e
commit 2fd03a3
Showing
2,853 changed files
with
7,807 additions
and
6,943 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
{ | ||
libs = "${final.pyvex}/lib/python3.10/site-packages/pyvex/lib"; | ||
} | ||
{ libs = "${final.pyvex}/lib/python3.10/site-packages/pyvex/lib"; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
postPatch = '' | ||
cat setup.py | ||
substituteInPlace "setup.py" \ | ||
--replace-fail "'nose>=1.0'" "" | ||
cat setup.py | ||
substituteInPlace "setup.py" \ | ||
--replace-fail "'nose>=1.0'" "" | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
{ | ||
postPatch = let | ||
libname = "libaugeas${pkgs.stdenv.hostPlatform.extensions.sharedLibrary}"; | ||
in old.postPatch or "" + '' | ||
substituteInPlace augeas/ffi.py \ | ||
--replace-fail 'ffi.dlopen("augeas")' \ | ||
'ffi.dlopen("${pkgs.lib.makeLibraryPath [pkgs.augeas]}/${libname}")' | ||
''; | ||
postPatch = | ||
let | ||
libname = "libaugeas${pkgs.stdenv.hostPlatform.extensions.sharedLibrary}"; | ||
in | ||
old.postPatch or "" | ||
+ '' | ||
substituteInPlace augeas/ffi.py \ | ||
--replace-fail 'ffi.dlopen("augeas")' \ | ||
'ffi.dlopen("${pkgs.lib.makeLibraryPath [ pkgs.augeas ]}/${libname}")' | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
{ | ||
propagatedBuildInputs = [final.capstone]; | ||
} | ||
{ propagatedBuildInputs = [ final.capstone ]; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
|
||
postBuild = '' | ||
${prev.python}/bin/python xkbcommon/ffi_build.py | ||
''; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
with pkgs; | ||
rec { | ||
patches = [ | ||
# Patch pygame's dependency resolution to let it find build inputs | ||
(pkgs.substituteAll { | ||
src = ./fix-dependency-finding.patch; | ||
buildinputs_include = builtins.toJSON ( | ||
builtins.concatMap (dep: [ | ||
"${lib.getDev dep}/" | ||
"${lib.getDev dep}/include" | ||
"${lib.getDev dep}/include/SDL2" | ||
]) buildInputs | ||
); | ||
buildinputs_lib = builtins.toJSON ( | ||
builtins.concatMap (dep: [ | ||
"${lib.getLib dep}/" | ||
"${lib.getLib dep}/lib" | ||
]) buildInputs | ||
); | ||
}) | ||
# Skip tests that should be disabled without video driver | ||
./skip-surface-tests.patch | ||
|
||
# removes distutils unbreaking py312, part of https://github.com/pygame/pygame/pull/4211 | ||
# (fetchpatch { | ||
# name = "remove-distutils.patch"; | ||
# url = "https://github.com/pygame/pygame/commit/6038e7d6583a7a25fcc6e15387cf6240e427e5a7.patch"; | ||
# hash = "sha256-HxcYjjhsu/Y9HiK9xDvY4X5dgWPP4XFLxdYGXC6tdWM="; | ||
# }) | ||
]; | ||
|
||
postPatch = '' | ||
substituteInPlace src_py/sysfont.py \ | ||
--replace-fail 'path="fc-list"' 'path="${fontconfig}/bin/fc-list"' \ | ||
--replace-fail /usr/X11/bin/fc-list ${fontconfig}/bin/fc-list | ||
''; | ||
|
||
nativeBuildInputs = [ | ||
final.cython_0 | ||
pkgs.pkg-config | ||
pkgs.SDL2 | ||
final.setuptools | ||
]; | ||
|
||
buildInputs = | ||
with pkgs; | ||
[ | ||
freetype | ||
libjpeg | ||
libpng | ||
xorg.libX11 | ||
portmidi | ||
SDL2 | ||
SDL2_image | ||
SDL2_mixer | ||
SDL2_ttf | ||
] | ||
++ lib.optionals stdenv.isDarwin [ AppKit ]; | ||
|
||
preConfigure = '' | ||
${prev.python}/bin/python buildconfig/config.py | ||
''; | ||
|
||
env = lib.optionalAttrs stdenv.cc.isClang { | ||
NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-function-pointer-types"; | ||
}; | ||
|
||
# checkPhase = '' | ||
# runHook preCheck | ||
|
||
# # No audio or video device in test environment | ||
# export SDL_VIDEODRIVER=dummy | ||
# export SDL_AUDIODRIVER=disk | ||
|
||
# ${final.python.interpreter} -m pygame.tests -v --exclude opengl,timing --time_out 300 | ||
|
||
# runHook postCheck | ||
# ''; | ||
} |
Oops, something went wrong.