From 0fd68a31294dab4e83a1a2cba043316fe3c44fe2 Mon Sep 17 00:00:00 2001 From: xgroleau Date: Sat, 26 Oct 2024 11:17:01 -0500 Subject: [PATCH] chore: updated to 1.8.0 --- .../default.nix => by-name/sl/slint-lsp/package.nix} | 9 ++++++--- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) rename pkgs/{development/tools/misc/slint-lsp/default.nix => by-name/sl/slint-lsp/package.nix} (83%) diff --git a/pkgs/development/tools/misc/slint-lsp/default.nix b/pkgs/by-name/sl/slint-lsp/package.nix similarity index 83% rename from pkgs/development/tools/misc/slint-lsp/default.nix rename to pkgs/by-name/sl/slint-lsp/package.nix index f51b848a621af..969457481da77 100644 --- a/pkgs/development/tools/misc/slint-lsp/default.nix +++ b/pkgs/by-name/sl/slint-lsp/package.nix @@ -25,14 +25,14 @@ let in rustPlatform.buildRustPackage rec { pname = "slint-lsp"; - version = "1.5.1"; + version = "1.8.0"; src = fetchCrate { inherit pname version; - hash = "sha256-wqAcHBHWtYavAakHLhHHCI+Yercgdtzo1EAOilsZOK0="; + hash = "sha256-Shgcjr0mlUNAobMAarZ7dFnXgPGzBHXs2KnUDT/8I2A="; }; - cargoHash = "sha256-XjVXhXoGEhxWc+LZa0EsPiw3Gq2pg03YjKONTptSQvA="; + cargoHash = "sha256-wyzrFg3hwsJ7SV8KGLKo+gNHzLFpnMx9/jgMalGkufY="; nativeBuildInputs = [ cmake pkg-config fontconfig ]; buildInputs = rpathLibs ++ [ xorg.libxcb.dev ] @@ -46,6 +46,9 @@ rustPlatform.buildRustPackage rec { OpenGL ]; + # Tests requires `i_slint_backend_testing` which is only a dev dependency + doCheck = false; + postInstall = lib.optionalString stdenv.hostPlatform.isLinux '' patchelf --set-rpath ${lib.makeLibraryPath rpathLibs} $out/bin/slint-lsp ''; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e98ee48b794fa..de02a9e0df680 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18385,7 +18385,7 @@ with pkgs; slimerjs = callPackage ../development/tools/slimerjs { }; - slint-lsp = callPackage ../development/tools/misc/slint-lsp { + slint-lsp = callPackage ../by-name/sl/slint-lsp/package.nix { inherit (darwin.apple_sdk_11_0.frameworks) AppKit CoreGraphics CoreServices CoreText Foundation OpenGL; };