Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 17b02efd1bdf
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 846da8ba7d01
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Oct 26, 2019

  1. sndio: fix build on darwin

    marsam committed Oct 26, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    5bb2426 View commit details

Commits on Oct 28, 2019

  1. Merge pull request #72033 from marsam/fix-sndio-darwin

    sndio: fix build on darwin
    marsam authored Oct 28, 2019
    Copy the full SHA
    846da8b View commit details
Showing with 7 additions and 1 deletion.
  1. +7 −1 pkgs/misc/sndio/default.nix
8 changes: 7 additions & 1 deletion pkgs/misc/sndio/default.nix
Original file line number Diff line number Diff line change
@@ -4,13 +4,19 @@ stdenv.mkDerivation rec {
pname = "sndio";
version = "1.6.0";
enableParallelBuilding = true;
buildInputs = [ alsaLib ];
buildInputs = stdenv.lib.optionals stdenv.isLinux [ alsaLib ];

src = fetchurl {
url = "http://www.sndio.org/sndio-${version}.tar.gz";
sha256 = "1havdx3q4mipgddmd2bnygr1yh6y64567m1yqwjapkhsq550dq4r";
};

postFixup = stdenv.lib.optionalString stdenv.isDarwin ''
for file in $out/bin/*; do
install_name_tool -change libsndio.7.0.dylib $out/lib/libsndio.dylib $file
done
'';

meta = with stdenv.lib; {
homepage = "http://www.sndio.org";
description = "Small audio and MIDI framework part of the OpenBSD project";