mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 04:17:33 +00:00
4b8d5eb34a
* Add libXdamage to flake.nix * Add TYPE_UTILITY as above-all alternative to TYPE_OVERRIDE * Click-through for TYPE_UTILITY * Added libxfixes to MacOS CI workflow * Disable building of XFIXES on MacOS * Fix build for xinerama/xfixes on macos. * Update Lua version check. * Tidy this up. * Fix BUILD_XFIXES on Linux * Sigh, fix this. --------- Co-authored-by: tranquillity-codes <dev@itycodes.org> Co-authored-by: Brenden Matthews <brenden@brndn.io>
63 lines
1.3 KiB
Nix
63 lines
1.3 KiB
Nix
{
|
|
description = "A Nix flake for Conky";
|
|
|
|
inputs = {
|
|
nixpkgs = {
|
|
url = "github:nixos/nixpkgs/nixos-unstable";
|
|
};
|
|
flake-utils = {
|
|
url = "github:numtide/flake-utils";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem
|
|
(system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [ self.overlay ];
|
|
};
|
|
in
|
|
rec
|
|
{
|
|
packages = flake-utils.lib.flattenTree {
|
|
conky = pkgs.conky;
|
|
};
|
|
defaultPackage = packages.conky;
|
|
apps.conky = flake-utils.lib.mkApp { drv = packages.conky; };
|
|
defaultApp = apps.conky;
|
|
}
|
|
) // {
|
|
overlay = final: prev: {
|
|
conky = with final; stdenv.mkDerivation rec {
|
|
name = "conky";
|
|
src = ./.;
|
|
nativeBuildInputs = [
|
|
clang_14
|
|
cmake
|
|
git
|
|
ninja
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
freetype
|
|
gettext
|
|
imlib2
|
|
llvmPackages_14.libcxx
|
|
llvmPackages_14.libcxxabi
|
|
lua
|
|
ncurses
|
|
xorg.libICE
|
|
xorg.libSM
|
|
xorg.libX11
|
|
xorg.libXext
|
|
xorg.libXft
|
|
xorg.libXinerama
|
|
xorg.libXdamage
|
|
xorg.libXfixes
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|