Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
72 lines
1.8 KiB
Nix
72 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
libbsd,
|
|
pkg-config,
|
|
libXrandr,
|
|
libXcursor,
|
|
libXft,
|
|
libXt,
|
|
xcbutil,
|
|
xcbutilkeysyms,
|
|
xcbutilwm,
|
|
writeShellScript,
|
|
curl,
|
|
jq,
|
|
nix-update,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "spectrwm";
|
|
version = "3.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "conformal";
|
|
repo = "spectrwm";
|
|
tag = "SPECTRWM_${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
|
|
hash = "sha256-wuBF+gCoqg5xIcb42rygS+lglghWqoNe0uAzyhe76eI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [
|
|
libXrandr
|
|
libXcursor
|
|
libXft
|
|
libXt
|
|
xcbutil
|
|
xcbutilkeysyms
|
|
xcbutilwm
|
|
libbsd
|
|
];
|
|
|
|
sourceRoot = finalAttrs.src.name + (if stdenv.hostPlatform.isDarwin then "/osx" else "/linux");
|
|
|
|
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";
|
|
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
|
|
tries to stay out of the way so that valuable screen real estate
|
|
can be used for much more important stuff. It has sane defaults
|
|
and does not require one to learn a language to do any
|
|
configuration. It was written by hackers for hackers and it
|
|
strives to be small, compact and fast.
|
|
'';
|
|
};
|
|
|
|
})
|