bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
46 lines
876 B
Nix
46 lines
876 B
Nix
{ lib
|
|
, stdenv
|
|
, dockapps-sources
|
|
, libX11
|
|
, libXext
|
|
, libXpm
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "cputnik";
|
|
|
|
inherit (dockapps-sources) version src;
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/cputnik/src";
|
|
|
|
buildInputs = [
|
|
libX11
|
|
libXpm
|
|
libXext
|
|
];
|
|
|
|
preBuild = ''
|
|
makeFlagsArray+=(
|
|
INCS="-I${libX11.dev}/include -I${libXext.dev}/include -I${libXpm.dev}/include"
|
|
LIBS="-L${libX11}/lib -L${libXext}/lib -L${libXpm}/lib -lX11 -lXpm -lXext"
|
|
)
|
|
'';
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 -t $out/bin/ cputnik
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Calendar clock with antialiased text";
|
|
homepage = "https://www.dockapps.net/wmcalclock";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|