Unverified Commit 9417752c authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

spectrwm: 3.6.0 -> 3.7.0 (#445391)

parents e00dd4a1 d4d15f15
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -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";