i have no idea if this works
This commit is contained in:
parent
203d56e06b
commit
8293ef42b6
6 changed files with 262 additions and 271 deletions
44
flake.nix
44
flake.nix
|
@ -28,6 +28,44 @@
|
|||
)
|
||||
llvmPackages.stdenv;
|
||||
|
||||
sources = import ./_sources/generated.nix {
|
||||
inherit (pkgs) fetchFromGitHub fetchgit fetchurl dockerTools;
|
||||
};
|
||||
|
||||
dbus-cxx = stdenv.mkDerivation {
|
||||
inherit (sources.dbus-cxx) pname version src;
|
||||
nativeBuildInputs = [
|
||||
pkgs.cmake
|
||||
pkgs.pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
pkgs.libsigcxx30
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
set -x # Print commands being run
|
||||
echo "--- Checking pkg-config paths ---"
|
||||
echo "PKG_CONFIG_PATH: $PKG_CONFIG_PATH"
|
||||
echo "--- Searching for sigc++ pc files ---"
|
||||
find $PKG_CONFIG_PATH -name '*.pc' | grep sigc || echo "No sigc pc file found in PKG_CONFIG_PATH"
|
||||
echo "--- Running pkg-config check ---"
|
||||
pkg-config --exists --print-errors 'sigc++-3.0'
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR: pkg-config check for sigc++-3.0 failed!"
|
||||
# Optionally list all available packages known to pkg-config:
|
||||
# pkg-config --list-all
|
||||
fi
|
||||
echo "--- End Debug ---"
|
||||
set +x
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
"-DENABLE_QT_SUPPORT=OFF"
|
||||
"-DENABLE_UV_SUPPORT=OFF"
|
||||
];
|
||||
};
|
||||
|
||||
deps = with pkgs;
|
||||
[
|
||||
(glaze.override {enableAvx2 = hostPlatform.isx86;})
|
||||
|
@ -35,7 +73,9 @@
|
|||
++ (with pkgsStatic; [
|
||||
curl
|
||||
ftxui
|
||||
tomlplusplus
|
||||
(tomlplusplus.overrideAttrs {
|
||||
doCheck = false;
|
||||
})
|
||||
])
|
||||
++ darwinPkgs
|
||||
++ linuxPkgs;
|
||||
|
@ -44,10 +84,12 @@
|
|||
|
||||
linuxPkgs = nixpkgs.lib.optionals stdenv.isLinux (with pkgs;
|
||||
[
|
||||
libsigcxx30
|
||||
valgrind
|
||||
]
|
||||
++ (with pkgsStatic; [
|
||||
dbus
|
||||
dbus-cxx
|
||||
sqlitecpp
|
||||
xorg.libX11
|
||||
wayland
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue