blob: 20934ec45ad455f1c9f22277f123db98ce2c5c3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{
raylib-python-cffi,
writers,
}:
let
src = raylib-python-cffi.src;
writeTest =
name: path:
writers.writePython3Bin name {
libraries = [ raylib-python-cffi ];
doCheck = false;
} (builtins.readFile (src + path));
in
{
basic_shapes = writeTest "basic_shapes" "/examples/shapes/shapes_basic_shapes.py";
cffi_binding =
(writeTest "cffi_binding" "/tests/test_static_with_only_api_from_dynamic.py").overrideAttrs
(prev: {
buildCommand = prev.buildCommand + ''
substituteInPlace $out/bin/cffi_binding \
--replace-fail "examples/models/resources/heightmap.png" \
"${src}/examples/models/resources/heightmap.png"
'';
});
}
|