1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-16 18:15:17 +00:00
conky/flake.nix
Brenden Matthews e2147bd5d7 Re-enable RSS in AppImage, also enable in Nix flake
The behaviour of the RSS flag changed in 4936c74, previously it would
enable cURL support when it was switched on, but now you must pass both
BUILD_RSS=ON and BUILD_CURL=ON to CMake at configure time.

This fixes #1861.
2024-04-25 20:13:02 -04:00

101 lines
2.5 KiB
Nix

{
description = "A Nix flake for Conky, including a dev shell";
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.overlays.default];
};
in
with pkgs; rec
{
packages = flake-utils.lib.flattenTree {
conky = conky;
default = conky;
};
apps.conky = flake-utils.lib.mkApp {drv = packages.conky;};
apps.default = apps.conky;
devShells.default = mkShell {
buildInputs =
packages.conky.buildInputs
++ packages.conky.nativeBuildInputs
++ [
alejandra # for beautifying flake
lefthook # for git hooks
nodejs # for web/ stuff
# for docs
(python3.withPackages (ps: with ps; [jinja2]))
];
};
}
)
// {
overlays.default = final: prev: {
conky = with final;
stdenv.mkDerivation rec {
name = "conky";
src = ./.;
cmakeFlags = [
"-DBUILD_LUA_CAIRO=ON"
"-DBUILD_LUA_IMLIB2=ON"
"-DBUILD_LUA_RSVG=ON"
"-DBUILD_RSS=ON"
"-DBUILD_CURL=ON"
];
nativeBuildInputs = [
clang_16
cmake
git
llvmPackages_16.clang-unwrapped
ninja
pkg-config
gperf
];
buildInputs =
[
cairo
curl
freetype
gettext
imlib2
librsvg
libxml2
llvmPackages_16.libcxx
llvmPackages_16.libcxxabi
lua5_4
ncurses
xorg.libICE
xorg.libSM
xorg.libX11
xorg.libxcb
xorg.libXdamage
xorg.libXext
xorg.libXfixes
xorg.libXft
xorg.libXi
xorg.libXinerama
xorg.xcbutilerrors
]
++ lib.optional stdenv.isDarwin darwin.libobjc;
};
};
};
}