2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, dockapps-sources
|
2020-11-12 09:05:59 +00:00
|
|
|
, libX11
|
|
|
|
, libXpm
|
|
|
|
, libXext
|
2023-11-16 04:20:00 +00:00
|
|
|
, libdockapp
|
|
|
|
}:
|
2020-11-12 09:05:59 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-11-12 09:05:59 +00:00
|
|
|
pname = "wmsm.app";
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
inherit (dockapps-sources) version src;
|
2020-11-12 09:05:59 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
sourceRoot = "${finalAttrs.src.name}/wmsm.app/wmsm";
|
2020-11-12 09:05:59 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
buildInputs = [
|
|
|
|
libX11
|
|
|
|
libXext
|
|
|
|
libXpm
|
|
|
|
libdockapp
|
|
|
|
];
|
2020-11-12 09:05:59 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-std=gnu89";
|
2020-11-12 09:05:59 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "PREFIX = /usr/X11R6/bin" "" \
|
|
|
|
--replace "/usr/bin/install" "install"
|
|
|
|
'';
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
makeFlags = [
|
|
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
|
|
];
|
2020-11-12 09:05:59 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
installPhase = ''
|
2020-11-12 09:05:59 +00:00
|
|
|
runHook preInstall
|
|
|
|
install -d ${placeholder "out"}/bin
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
installFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}/bin"
|
|
|
|
];
|
2020-11-12 09:05:59 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
meta = {
|
2020-11-12 09:05:59 +00:00
|
|
|
description = "System monitor for Windowmaker";
|
|
|
|
homepage = "https://www.dockapps.net/wmsmapp";
|
2023-11-16 04:20:00 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = [ ];
|
2020-11-12 09:05:59 +00:00
|
|
|
};
|
2023-11-16 04:20:00 +00:00
|
|
|
})
|