2023-01-01 18:39:34 +00:00
|
|
|
{
|
|
|
|
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 = [
|
2023-03-01 04:03:00 +00:00
|
|
|
clang_15
|
2023-01-01 18:39:34 +00:00
|
|
|
cmake
|
|
|
|
git
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
freetype
|
|
|
|
gettext
|
|
|
|
imlib2
|
2023-03-01 04:03:00 +00:00
|
|
|
llvmPackages_15.libcxx
|
|
|
|
llvmPackages_15.libcxxabi
|
|
|
|
lua5_4
|
2023-01-01 18:39:34 +00:00
|
|
|
ncurses
|
|
|
|
xorg.libICE
|
|
|
|
xorg.libSM
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libXext
|
|
|
|
xorg.libXft
|
|
|
|
xorg.libXinerama
|
2023-02-17 03:03:14 +00:00
|
|
|
xorg.libXdamage
|
|
|
|
xorg.libXfixes
|
2023-01-01 18:39:34 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|