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 af179ed66e345..ea3f384bda6a0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18365,7 +18365,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; };