mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
48 lines
884 B
Nix
48 lines
884 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;
|
|
};
|
|
})
|