blob: 5bbb8c5eb49874de9a15fbaa52b6f28e8b6dda44 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
stdenv,
buildPythonPackage,
cargo,
fetchFromGitHub,
libiconv,
rustPlatform,
rustc,
setuptools-rust,
range-typed-integers,
}:
buildPythonPackage rec {
pname = "skytemple-rust";
version = "1.8.5";
pyproject = true;
src = fetchFromGitHub {
owner = "SkyTemple";
repo = "skytemple-rust";
rev = version;
hash = "sha256-yJ78P00h4SITVuDnIh5IIlWkoed/VtIw3NB8ETB95bk=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-9OgUuuMuo2l4YsZMhBZJBqKqbNwj1W4yidoogjcNgm8=";
};
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
libiconv
];
nativeBuildInputs = [
setuptools-rust
rustPlatform.cargoSetupHook
cargo
rustc
];
propagatedBuildInputs = [ range-typed-integers ];
GETTEXT_SYSTEM = true;
doCheck = false; # tests for this package are in skytemple-files package
pythonImportsCheck = [ "skytemple_rust" ];
meta = {
homepage = "https://github.com/SkyTemple/skytemple-rust";
description = "Binary Rust extensions for SkyTemple";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ marius851000 ];
};
}
|