icewm: enable on darwin (#413470)

This commit is contained in:
Aleksana 2025-06-09 15:52:28 +08:00 committed by GitHub
commit 9012f9a52a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,6 @@
{ {
lib, lib,
stdenv, gccStdenv,
fetchFromGitHub, fetchFromGitHub,
cmake, cmake,
expat, expat,
@ -39,7 +39,7 @@
pkg-config, pkg-config,
}: }:
stdenv.mkDerivation (finalAttrs: { gccStdenv.mkDerivation (finalAttrs: {
pname = "icewm"; pname = "icewm";
version = "3.7.5"; version = "3.7.5";
@ -99,13 +99,15 @@ stdenv.mkDerivation (finalAttrs: {
"-DCFGDIR=/etc/icewm" "-DCFGDIR=/etc/icewm"
]; ];
env.NIX_CFLAGS_COMPILE = lib.optionalString gccStdenv.hostPlatform.isDarwin "-D_DARWIN_C_SOURCE";
# install legacy themes # install legacy themes
postInstall = '' postInstall = ''
cp -r ../lib/themes/{gtk2,Natural,nice,nice2,warp3,warp4,yellowmotif} \ cp -r ../lib/themes/{gtk2,Natural,nice,nice2,warp3,warp4,yellowmotif} \
$out/share/icewm/themes/ $out/share/icewm/themes/
''; '';
meta = with lib; { meta = {
homepage = "https://ice-wm.org/"; homepage = "https://ice-wm.org/";
description = "Simple, lightweight X window manager"; description = "Simple, lightweight X window manager";
longDescription = '' longDescription = ''
@ -121,8 +123,8 @@ stdenv.mkDerivation (finalAttrs: {
optional external background wallpaper manager with transparency support, optional external background wallpaper manager with transparency support,
a simple session manager and a system tray. a simple session manager and a system tray.
''; '';
license = licenses.lgpl2Only; license = lib.licenses.lgpl2Only;
maintainers = [ ]; maintainers = [ ];
platforms = platforms.linux; platforms = lib.platforms.unix;
}; };
}) })