spectrwm: 3.6.0 -> 3.7.0 (#445391)

This commit is contained in:
Yohann Boniface
2025-10-04 18:48:43 +00:00
committed by GitHub
+11 -2
View File
@@ -11,17 +11,21 @@
xcbutil,
xcbutilkeysyms,
xcbutilwm,
writeShellScript,
curl,
jq,
nix-update,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "spectrwm";
version = "3.6.0";
version = "3.7.0";
src = fetchFromGitHub {
owner = "conformal";
repo = "spectrwm";
tag = "SPECTRWM_${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
hash = "sha256-Dnn/iIrceiAVuMR8iMGcc7LqNhWC496eT5gNrYOInRU=";
hash = "sha256-wuBF+gCoqg5xIcb42rygS+lglghWqoNe0uAzyhe76eI=";
};
nativeBuildInputs = [ pkg-config ];
@@ -40,6 +44,11 @@ stdenv.mkDerivation (finalAttrs: {
makeFlags = [ "PREFIX=${placeholder "out"}" ];
passthru.updateScript = writeShellScript "update-spectrwm" ''
latestVersion=$(${lib.getExe curl} ''${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} --silent --fail --location https://api.github.com/repos/conformal/spectrwm/releases/latest | ${lib.getExe jq} --raw-output .tag_name | grep -oP '\d+' | paste -sd.)
${lib.getExe nix-update} spectrwm --version=$latestVersion
'';
meta = {
description = "Tiling window manager";
homepage = "https://github.com/conformal/spectrwm";