fix(nix): install paths from pkg-config properly

Because we were using `DESTDIR` instead of `PREFIX` for some reason, no
one noticed that this didn't work.

Signed-off-by: Thomas Mühlbacher <tmuehlbacher@posteo.net>
This commit is contained in:
Thomas Mühlbacher 2024-06-17 17:57:20 +02:00
parent ab83e348fb
commit b46d3a2710

View File

@ -76,9 +76,14 @@
inherit version; inherit version;
src = self; src = self;
env = {
PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMUNITDIR = "${placeholder "out"}/lib/systemd/system";
PKG_CONFIG_UDEV_UDEVDIR = "${placeholder "out"}/lib/udev";
};
makeFlags = [ makeFlags = [
"DESTDIR=${placeholder "out"}" "INITRAMFS_DIR=${placeholder "out"}/etc/initramfs-tools"
"PREFIX=" "PREFIX=${placeholder "out"}"
"VERSION=${version}" "VERSION=${version}"
]; ];