2023-01-01 18:39:34 +00:00
|
|
|
{
|
2023-06-24 16:51:09 +00:00
|
|
|
description = "A Nix flake for Conky, including a dev shell";
|
2023-01-01 18:39:34 +00:00
|
|
|
inputs = {
|
|
|
|
nixpkgs = {
|
|
|
|
url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
};
|
|
|
|
flake-utils = {
|
|
|
|
url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-06-24 16:51:09 +00:00
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
flake-utils,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
flake-utils.lib.eachDefaultSystem
|
|
|
|
(
|
|
|
|
system: let
|
2023-01-01 18:39:34 +00:00
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
2023-06-24 16:51:09 +00:00
|
|
|
overlays = [self.overlay];
|
2023-01-01 18:39:34 +00:00
|
|
|
};
|
|
|
|
in
|
2023-06-24 16:51:09 +00:00
|
|
|
with pkgs; rec
|
|
|
|
{
|
|
|
|
packages = flake-utils.lib.flattenTree {
|
|
|
|
conky = conky;
|
|
|
|
};
|
|
|
|
|
|
|
|
defaultPackage = packages.conky;
|
|
|
|
apps.conky = flake-utils.lib.mkApp {drv = packages.conky;};
|
|
|
|
defaultApp = 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]))
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
)
|
|
|
|
// {
|
|
|
|
overlay = final: prev: {
|
|
|
|
conky = with final;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "conky";
|
|
|
|
src = ./.;
|
|
|
|
nativeBuildInputs = [
|
|
|
|
clang_16
|
|
|
|
cmake
|
|
|
|
git
|
|
|
|
llvmPackages_16.clang-unwrapped
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs =
|
|
|
|
[
|
|
|
|
freetype
|
|
|
|
gettext
|
|
|
|
imlib2
|
|
|
|
llvmPackages_16.libcxx
|
|
|
|
llvmPackages_16.libcxxabi
|
|
|
|
lua5_4
|
|
|
|
ncurses
|
|
|
|
xorg.libICE
|
|
|
|
xorg.libSM
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libXdamage
|
|
|
|
xorg.libXext
|
|
|
|
xorg.libXfixes
|
|
|
|
xorg.libXft
|
|
|
|
xorg.libXinerama
|
2023-11-09 13:05:27 +00:00
|
|
|
xorg.libXi
|
|
|
|
xorg.libxcb
|
|
|
|
xorg.xcbutilerrors
|
2023-06-24 16:51:09 +00:00
|
|
|
]
|
|
|
|
++ lib.optional stdenv.isDarwin darwin.libobjc;
|
|
|
|
};
|
2023-01-01 18:39:34 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|