clight: cleanup

This commit is contained in:
Weijia Wang 2023-06-13 15:50:13 +03:00
parent a016e36701
commit 8b96c2dd04

View File

@ -15,15 +15,6 @@ stdenv.mkDerivation rec {
sha256 = "sha256-IAoz4f4XrX8bgesWL4yLK6m5F+c75WNIMFgKBj+W61Q=";
};
# dbus-1.pc has datadir=/etc
SESSION_BUS_DIR = "${placeholder "out"}/share/dbus-1/services";
postPatch = ''
sed -i "s@/usr@$out@" CMakeLists.txt
sed -i "s@/etc@$out\0@" CMakeLists.txt
sed -i "s@pkg_get_variable(SESSION_BUS_DIR.*@set(SESSION_BUS_DIR $SESSION_BUS_DIR)@" CMakeLists.txt
'';
nativeBuildInputs = [
dbus
cmake
@ -44,7 +35,7 @@ stdenv.mkDerivation rec {
++ optional withUpower upower;
cmakeFlags = [
# bash-completion.pc completionsdir=${bash-completion.out}
"-DSESSION_BUS_DIR=${placeholder "out"}/share/dbus-1/services"
"-DBASH_COMPLETIONS_DIR=${placeholder "out"}/share/bash-completions/completions"
"-DZSH_COMPLETIONS_DIR=${placeholder "out"}/share/zsh/site-functions"
];