git.iko.soy/typeable/nixpkgs
on master help sign in
sndio: fix build on darwin
commit5bb2426dbeef8c64ec56f5985c15e14b069bf2f6 authorMario Rodas <marsam@users.noreply.github.com> dateSat 26 Oct 2019, 09:00 (7 years ago) parent0347078
1 file changed+7−1
pkgs/misc/sndio/default.nix+7−1
pkgs/misc/sndio/default.nix+7−1
@@ -4,13 +4,19 @@ stdenv.mkDerivation rec {
44 pname = "sndio";
55 version = "1.6.0";
66 enableParallelBuilding = true;
7− buildInputs = [ alsaLib ];
7+ buildInputs = stdenv.lib.optionals stdenv.isLinux [ alsaLib ];
88
99 src = fetchurl {
1010 url = "http://www.sndio.org/sndio-${version}.tar.gz";
1111 sha256 = "1havdx3q4mipgddmd2bnygr1yh6y64567m1yqwjapkhsq550dq4r";
1212 };
1313
14+ postFixup = stdenv.lib.optionalString stdenv.isDarwin ''
15+ for file in $out/bin/*; do
16+ install_name_tool -change libsndio.7.0.dylib $out/lib/libsndio.dylib $file
17+ done
18+ '';
19+
1420 meta = with stdenv.lib; {
1521 homepage = "http://www.sndio.org";
1622 description = "Small audio and MIDI framework part of the OpenBSD project";