summary refs log tree commit diff
path: root/pkgs/applications/window-managers/icewm/default.nix
blob: 71a4ec3549a7c2481177fd74aafb03d073aa0a6c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ stdenv, fetchurl, cmake, gettext
, libjpeg, libtiff, libungif, libpng, imlib, expat
, freetype, fontconfig, pkgconfig, gdk-pixbuf
, mkfontdir, libX11, libXft, libXext, libXinerama
, libXrandr, libICE, libSM, libXpm, libXdmcp, libxcb
, libpthreadstubs, pcre }:

with stdenv.lib;
stdenv.mkDerivation rec {
  pname = "icewm";
  version = "1.4.2";

  buildInputs =
  [ cmake gettext libjpeg libtiff libungif libpng imlib expat
    freetype fontconfig pkgconfig gdk-pixbuf mkfontdir libX11
    libXft libXext libXinerama libXrandr libICE libSM libXpm
    libXdmcp libxcb libpthreadstubs pcre ];

  src = fetchurl {
    url = "https://github.com/bbidulock/icewm/archive/${version}.tar.gz";
    sha256 = "05chzjjnb4n4j05ld2gmhhr07c887qb4j9inwg9izhvml51af1bw";
  };

  preConfigure = ''
    export cmakeFlags="-DPREFIX=$out -DCFGDIR=/etc/icewm"
  '';

  patches = [ ./fix-strlcat_strlcpy.patch ] ++
    stdenv.lib.optional stdenv.hostPlatform.isMusl ./musl.patch;

  patchFlags = [ "-p0" ];

  meta = {
    description = "A simple, lightweight X window manager";
    longDescription = ''
      IceWM is a window manager for the X Window System. The goal of
      IceWM is speed, simplicity, and not getting in the user's way.
    '';
    homepage = http://www.icewm.org/;
    license = licenses.lgpl2;
    maintainers = [ maintainers.AndersonTorres ];
    platforms = platforms.linux;
  };
}