windowmaker.dockapps.cputnik: init

This commit is contained in:
Anderson Torres 2023-10-18 20:45:45 -03:00
parent e2c364f24b
commit d6340f4857
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,46 @@
{ 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 = "A Calendar clock with antialiased text";
homepage = "https://www.dockapps.net/wmcalclock";
license = lib.licenses.gpl2Plus;
maintainers = [ ];
platforms = lib.platforms.linux;
};
})

View file

@ -15,6 +15,8 @@ lib.makeScope pkgs.newScope (self: {
AlsaMixer-app = self.callPackage ./AlsaMixer-app.nix { };
cputnik = self.callPackage ./cputnik.nix { };
libdockapp = self.callPackage ./libdockapp.nix { };
wmCalClock = self.callPackage ./wmCalClock.nix { };