mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 11:30:35 +08:00
They are not doing anything right now. This is in preparation for their complete removal from the tree. Note: several changes that affect the derivation inputs (e.g. removal of references to stub paths in build instructions) were left out. They will be cleaned up the next iteration and will require special care. Note: this PR is a result of a mix of ugly regex (not AST) based automation and some manual labor. For reference, the regex automation part was hacked in: https://github.com/booxter/nix-clean-apple_sdk Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{
|
|
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 src;
|
|
name = "${pname}-${version}";
|
|
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 = with lib; {
|
|
homepage = "https://github.com/SkyTemple/skytemple-rust";
|
|
description = "Binary Rust extensions for SkyTemple";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ marius851000 ];
|
|
};
|
|
}
|