diff options
author | Lluís Batlle i Rossell <viric@viric.name> | 2015-04-17 09:37:42 +0200 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@viric.name> | 2015-04-17 09:37:42 +0200 |
commit | 19a96c7c304ab35fb68a4d271517650cbff59f75 (patch) | |
tree | 6b59eef1cc4d391c16b4d18e1410c948b8673271 /pkgs/development/libraries/libmikmod | |
parent | eaecd7ffd4af92915264b954f05a8dfcb7c21056 (diff) |
Adding alsa/pulseaudio to mikmod
I also write the sf urls with mirror://.
Diffstat (limited to 'pkgs/development/libraries/libmikmod')
-rw-r--r-- | pkgs/development/libraries/libmikmod/default.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/development/libraries/libmikmod/default.nix b/pkgs/development/libraries/libmikmod/default.nix index 3e95f944caf46..2146562c5cb77 100644 --- a/pkgs/development/libraries/libmikmod/default.nix +++ b/pkgs/development/libraries/libmikmod/default.nix @@ -1,14 +1,18 @@ -{ stdenv, fetchurl, texinfo }: +{ stdenv, fetchurl, texinfo, alsaLib, pulseaudio }: stdenv.mkDerivation rec { name = "libmikmod-3.3.7"; - src = fetchurl { - url = "http://downloads.sourceforge.net/project/mikmod/libmikmod/3.3.7/libmikmod-3.3.7.tar.gz"; + url = "mirror://sourceforge/mikmod/${name}.tar.gz"; sha256 = "18nrkf5l50hfg0y50yxr7bvik9f002lhn8c00nbcp6dgm5011x2c"; }; - buildInputs = [ texinfo ]; + buildInputs = [ texinfo ] + ++ stdenv.lib.optional stdenv.isLinux [ alsaLib pulseaudio ]; + propagatedBuildInputs = + stdenv.lib.optional stdenv.isLinux pulseaudio; + + NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lasound"; meta = with stdenv.lib; { description = "A library for playing tracker music module files"; |