remove playerctl lol

This commit is contained in:
Mars 2024-06-06 04:14:52 -04:00
parent 500138ce67
commit 3071b23b93
Signed by: pupbrained
GPG key ID: 0FF5B8826803F895
7 changed files with 130 additions and 89 deletions

View file

@ -46,9 +46,27 @@
];
};
stdenv = pkgs.llvmPackages_18.stdenv;
stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.llvmPackages_18.stdenv;
darwinPkgs = nixpkgs.lib.optionals pkgs.stdenv.isDarwin (with pkgs.darwin; [
deps = with (
if !stdenv.isDarwin
then pkgs.pkgsStatic
else pkgs
); # TODO: Remove when fixed on darwin
[
coost
fmt
glib
libcpr
tomlplusplus
]
++ (with pkgs; (lib.optionals hostPlatform.isLinux [
sdbus-cpp
valgrind
]));
darwinPkgs = nixpkgs.lib.optionals stdenv.isDarwin (with pkgs.darwin; [
apple_sdk.frameworks.CoreFoundation
apple_sdk.frameworks.MediaPlayer
]);
@ -66,15 +84,10 @@
pkg-config
];
propagatedBuildInputs =
[
libcpr
tomlplusplus
]
++ (lib.optionals pkgs.hostPlatform.isLinux [
glib
playerctl
]);
propagatedBuildInputs = [
libcpr
tomlplusplus
];
buildInputs = [
coost
@ -107,24 +120,16 @@
bear
clang-tools_18
meson
lldb
ninja
pkg-config
unzip
coost
fmt
glib
libcpr
tomlplusplus
]
++ (lib.optionals pkgs.hostPlatform.isLinux [playerctl])
++ darwinPkgs;
buildInputs =
[
coost
libcpr
tomlplusplus
(writeScriptBin "build" "meson compile -C build")
(writeScriptBin "clean" "meson setup build --wipe")
(writeScriptBin "run" "meson compile -C build && build/draconis++")
]
++ deps
++ darwinPkgs;
name = "C++";