Unverified Commit 3e29dd17 authored by LukaDev's avatar LukaDev
Browse files

lune: 0.8.9 -> 0.10.1

https://github.com/lune-org/lune/releases/tag/v0.10.1

- Updated lune to 0.10.1.
- Removed `nativeBuildInputs` as `libz-ng-sys` has been replaced with
  `libz-rs-sys`, which is a pure Rust implementation.
- Updated skipped tests.
parent 2a213049
Loading
Loading
Loading
Loading
+9 −11
Original line number Diff line number Diff line
@@ -7,23 +7,18 @@
}:
rustPlatform.buildRustPackage rec {
  pname = "lune";
  version = "0.8.9";
  version = "0.10.1";

  src = fetchFromGitHub {
    owner = "filiptibell";
    repo = "lune";
    rev = "v${version}";
    hash = "sha256-KZt3w+nhJjz3ZLtLzJz0zpFTwQ28OmFWnCsLbo36Ryc=";
    hash = "sha256-Kk3ZIF+kQzsg/ApUm12bbWlIthj5cpVefAqEGhgxb3w=";
    fetchSubmodules = true;
  };

  useFetchCargoVendor = true;
  cargoHash = "sha256-oOz7r/5NTzdNbVvO2erWlWR0f0fH7HWBo9LVkZN65pU=";

  nativeBuildInputs = [
    pkg-config
    cmake # required for libz-ng-sys
  ];
  cargoHash = "sha256-zGXxck/cH8nIS1B/bPTJf1LLCl1viOGSDL0TRQSNaRk=";

  # error: linker `aarch64-linux-gnu-gcc` not found
  postPatch = ''
@@ -32,19 +27,22 @@ rustPlatform.buildRustPackage rec {

  checkFlags = [
    # require internet access
    "--skip=tests::net_socket_basic"
    "--skip=tests::net_request_codes"
    "--skip=tests::net_request_compression"
    "--skip=tests::net_request_https"
    "--skip=tests::net_request_methods"
    "--skip=tests::net_request_query"
    "--skip=tests::net_request_redirect"
    "--skip=tests::net_socket_basic"
    "--skip=tests::net_socket_wss"
    "--skip=tests::net_socket_wss_rw"
    "--skip=tests::net_tcp_basic"
    "--skip=tests::net_tcp_info"
    "--skip=tests::net_tcp_tls"
    "--skip=tests::roblox_instance_custom_async"
    "--skip=tests::serde_json_decode"

    # uses root as the CWD
    "--skip=tests::process_spawn_cwd"
    "--skip=tests::process_exec_cwd"
  ];

  meta = with lib; {