summary refs log tree commit diff
path: root/pkgs/applications/window-managers/windowmaker/dockapps/wmsm.app.nix
blob: 3e8b3f7f1584d03301a57300f9200a3d636efdb4 (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
{ stdenv, fetchurl, pkgconfig, libX11, libXpm, libXext }:

stdenv.mkDerivation {
  name = "wmsm.app-0.2.1";
  src = fetchurl {
     url = http://linux-bsd-unix.strefa.pl/wmsm.app-0.2.1.tar.bz2;
     sha256 = "369a8f2e5673c6b7ab0cf85166f38fbf553dd966c3c1cfeec0e32837defd32c7";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ libX11 libXpm libXext ];

  postUnpack = "sourceRoot=\${sourceRoot}/wmsm";

  NIX_CFLAGS_COMPILE = "-std=gnu89";

  installPhase = ''
    substituteInPlace Makefile --replace "PREFIX	= /usr/X11R6/bin" "" --replace "/usr/bin/install" "install"
    mkdir -pv $out/bin;
    make PREFIX=$out/bin install;
    '';

  meta = {
    description = "System monitor for Windowmaker";
    homepage = http://linux-bsd-unix.strefa.pl;
    license = stdenv.lib.licenses.gpl2;
    maintainers = [ stdenv.lib.maintainers.bstrik ];
  };
}