2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, dockapps-sources
|
2020-11-12 09:05:59 +00:00
|
|
|
, libX11
|
|
|
|
, libXpm
|
|
|
|
, libXext
|
|
|
|
, libdockapp }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wmsm.app";
|
|
|
|
version = "0.2.1";
|
|
|
|
|
|
|
|
src = dockapps-sources;
|
|
|
|
|
|
|
|
buildInputs = [ libX11 libXpm libXext libdockapp ];
|
|
|
|
|
|
|
|
setSourceRoot = ''
|
|
|
|
export sourceRoot=$(echo */${pname}/wmsm)
|
|
|
|
'';
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-std=gnu89";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "PREFIX = /usr/X11R6/bin" "" \
|
|
|
|
--replace "/usr/bin/install" "install"
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [ "CC=cc" ];
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -d ${placeholder "out"}/bin
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=${placeholder "out"}/bin" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-12 09:05:59 +00:00
|
|
|
description = "System monitor for Windowmaker";
|
|
|
|
homepage = "https://www.dockapps.net/wmsmapp";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.bstrik ];
|
|
|
|
};
|
|
|
|
}
|