bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
44 lines
889 B
Nix
44 lines
889 B
Nix
{ lib
|
|
, stdenv
|
|
, dockapps-sources
|
|
, libX11
|
|
, libXext
|
|
, libXpm
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "wmCalClock";
|
|
|
|
inherit (dockapps-sources) version src;
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/wmCalClock";
|
|
|
|
buildInputs = [
|
|
libX11
|
|
libXpm
|
|
libXext
|
|
];
|
|
|
|
preBuild = ''
|
|
makeFlagsArray+=(
|
|
CC="cc"
|
|
INCDIR="-I${libX11.dev}/include -I${libXext.dev}/include -I${libXpm.dev}/include"
|
|
LIBDIR="-I${libX11}/lib -I${libXext}/lib -I${libXpm}/lib"
|
|
)
|
|
'';
|
|
|
|
preInstall = ''
|
|
install -d ${placeholder "out"}/bin
|
|
install -d ${placeholder "out"}/man/man1
|
|
'';
|
|
|
|
installFlags = [ "DESTDIR=${placeholder "out"}" ];
|
|
|
|
meta = {
|
|
description = "Calendar clock with antialiased text";
|
|
homepage = "https://www.dockapps.net/wmcalclock";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|