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