From 2c9833c0e514f0ca2babb26c5c54dff18001df7b Mon Sep 17 00:00:00 2001 From: David Wolff Date: Mon, 24 Nov 2025 16:22:41 +0100 Subject: [PATCH 1/2] stylance-cli: 0.7.1 -> 0.7.4 --- pkgs/by-name/st/stylance-cli/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/st/stylance-cli/package.nix b/pkgs/by-name/st/stylance-cli/package.nix index 1dabebb06908..436d783e56c5 100644 --- a/pkgs/by-name/st/stylance-cli/package.nix +++ b/pkgs/by-name/st/stylance-cli/package.nix @@ -5,14 +5,14 @@ }: rustPlatform.buildRustPackage rec { pname = "stylance-cli"; - version = "0.7.1"; + version = "0.7.4"; src = fetchCrate { inherit pname version; - hash = "sha256-Cdv+Lz+l0+8Jdk9stHACXDbUPedM/YryDMExdsqVvsU="; + hash = "sha256-lGgKmNqZ0nflVAM3GMDwGgxnXyLCqVz1bTUsvabXmj8="; }; - cargoHash = "sha256-cwgR5AHCeS9YkaJlyFxvEOrBXg7/tXNGXgtSEPHAwm4="; + cargoHash = "sha256-HWZQNEKTyNnmA1twN5cfo5RY2tOeCnL6zEp+M4F+Tqg="; meta = { description = "Library and cli tool for working with scoped CSS in rust"; From 3bc875379a3b75bd17ad448306b17c7d905662a5 Mon Sep 17 00:00:00 2001 From: David Wolff Date: Mon, 24 Nov 2025 16:32:47 +0100 Subject: [PATCH 2/2] stylance-cli: add version test --- pkgs/by-name/st/stylance-cli/package.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/st/stylance-cli/package.nix b/pkgs/by-name/st/stylance-cli/package.nix index 436d783e56c5..33af631b3b43 100644 --- a/pkgs/by-name/st/stylance-cli/package.nix +++ b/pkgs/by-name/st/stylance-cli/package.nix @@ -2,10 +2,14 @@ lib, rustPlatform, fetchCrate, + versionCheckHook, }: -rustPlatform.buildRustPackage rec { +let pname = "stylance-cli"; version = "0.7.4"; +in +rustPlatform.buildRustPackage { + inherit pname version; src = fetchCrate { inherit pname version; @@ -14,6 +18,10 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-HWZQNEKTyNnmA1twN5cfo5RY2tOeCnL6zEp+M4F+Tqg="; + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + versionCheckProgramArg = "--version"; + meta = { description = "Library and cli tool for working with scoped CSS in rust"; mainProgram = "stylance";