spectrwm: refresh (#412860)

This commit is contained in:
Donovan Glover 2025-06-01 16:31:53 +00:00 committed by GitHub
commit 4c40752989
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,7 +4,13 @@
fetchFromGitHub, fetchFromGitHub,
libbsd, libbsd,
pkg-config, pkg-config,
xorg, libXrandr,
libXcursor,
libXft,
libXt,
xcbutil,
xcbutilkeysyms,
xcbutilwm,
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
@ -14,39 +20,34 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "conformal"; owner = "conformal";
repo = "spectrwm"; repo = "spectrwm";
rev = "SPECTRWM_${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version}"; tag = "SPECTRWM_${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
hash = "sha256-Dnn/iIrceiAVuMR8iMGcc7LqNhWC496eT5gNrYOInRU="; hash = "sha256-Dnn/iIrceiAVuMR8iMGcc7LqNhWC496eT5gNrYOInRU=";
}; };
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = ( buildInputs = [
with xorg; libXrandr
[ libXcursor
libXrandr libXft
libXcursor libXt
libXft xcbutil
libXt xcbutilkeysyms
xcbutil xcbutilwm
xcbutilkeysyms libbsd
xcbutilwm ];
]
++ [ libbsd ]
);
prePatch = sourceRoot = finalAttrs.src.name + (if stdenv.hostPlatform.isDarwin then "/osx" else "/linux");
let
subdir = if stdenv.hostPlatform.isDarwin then "osx" else "linux";
in
"cd ${subdir}";
makeFlags = [ "PREFIX=${placeholder "out"}" ]; makeFlags = [ "PREFIX=${placeholder "out"}" ];
meta = with lib; { meta = {
description = "Tiling window manager"; description = "Tiling window manager";
homepage = "https://github.com/conformal/spectrwm"; homepage = "https://github.com/conformal/spectrwm";
maintainers = with maintainers; [ rake5k ]; maintainers = with lib.maintainers; [
license = licenses.isc; rake5k
platforms = platforms.all; ];
license = lib.licenses.isc;
platforms = lib.platforms.all;
longDescription = '' longDescription = ''
spectrwm is a small dynamic tiling window manager for X11. It spectrwm is a small dynamic tiling window manager for X11. It