From d6340f4857b81ff9106efbb38edb52c0f84553e2 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Wed, 18 Oct 2023 20:45:45 -0300 Subject: [PATCH] windowmaker.dockapps.cputnik: init --- .../wi/windowmaker/dockapps/cputnik.nix | 46 +++++++++++++++++++ .../wi/windowmaker/dockapps/default.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/by-name/wi/windowmaker/dockapps/cputnik.nix diff --git a/pkgs/by-name/wi/windowmaker/dockapps/cputnik.nix b/pkgs/by-name/wi/windowmaker/dockapps/cputnik.nix new file mode 100644 index 000000000000..6ac10e374e0f --- /dev/null +++ b/pkgs/by-name/wi/windowmaker/dockapps/cputnik.nix @@ -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; + }; +}) diff --git a/pkgs/by-name/wi/windowmaker/dockapps/default.nix b/pkgs/by-name/wi/windowmaker/dockapps/default.nix index 4477413a2acd..5649c618f9d4 100644 --- a/pkgs/by-name/wi/windowmaker/dockapps/default.nix +++ b/pkgs/by-name/wi/windowmaker/dockapps/default.nix @@ -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 { };