Merge pull request #192165 from delroth/openalsoft-closure
openalSoft: remove leaked reference to pipewire.dev output
This commit is contained in:
commit
06792aa9eb
1 changed files with 6 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, removeReferencesTo
|
||||||
, alsaSupport ? !stdenv.isDarwin, alsa-lib
|
, alsaSupport ? !stdenv.isDarwin, alsa-lib
|
||||||
, dbusSupport ? !stdenv.isDarwin, dbus
|
, dbusSupport ? !stdenv.isDarwin, dbus
|
||||||
, pipewireSupport ? !stdenv.isDarwin, pipewire
|
, pipewireSupport ? !stdenv.isDarwin, pipewire
|
||||||
|
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config ];
|
nativeBuildInputs = [ cmake pkg-config removeReferencesTo ];
|
||||||
|
|
||||||
buildInputs = lib.optional alsaSupport alsa-lib
|
buildInputs = lib.optional alsaSupport alsa-lib
|
||||||
++ lib.optional dbusSupport dbus
|
++ lib.optional dbusSupport dbus
|
||||||
|
@ -46,6 +46,10 @@ stdenv.mkDerivation rec {
|
||||||
"-DOSS_INCLUDE_DIR=${stdenv.cc.libc}/include"
|
"-DOSS_INCLUDE_DIR=${stdenv.cc.libc}/include"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postInstall = lib.optional pipewireSupport ''
|
||||||
|
remove-references-to -t ${pipewire.dev} $(readlink -f $out/lib/*.so)
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "OpenAL alternative";
|
description = "OpenAL alternative";
|
||||||
homepage = "https://openal-soft.org/";
|
homepage = "https://openal-soft.org/";
|
||||||
|
|
Loading…
Reference in a new issue