8 # Upstream changes files in-place, to update:
9 # 1. Check latest version at http://www.un4seen.com/
10 # 2. Update `version`s and `hash` sums.
11 # See also http://www.un4seen.com/forum/?topic=18614.0
13 # Internet Archive used due to upstream URLs being unstable
21 i686_linux = "libs/x86/libbass.so";
22 x86_64-linux = "libs/x86_64/libbass.so";
23 armv7l-linux = "libs/armhf/libbass.so";
24 aarch64-linux = "libs/aarch64/libbass.so";
26 url = "https://web.archive.org/web/20240501180538/http://www.un4seen.com/files/bass24-linux.zip";
27 hash = "sha256-/JAlvtZtnzuzZjWy3n1WT8Q5ZVLO0BJJAJT7/dELS3o=";
34 i686_linux = "libs/x86/libbass_fx.so";
35 x86_64-linux = "libs/x86_64/libbass_fx.so";
36 armv7l-linux = "libs/armhf/libbass_fx.so";
37 aarch64-linux = "libs/aarch64/libbass_fx.so";
39 url = "https://web.archive.org/web/20240926184106/https://www.un4seen.com/files/z/0/bass_fx24-linux.zip";
40 hash = "sha256-Hul2ELwnaDV8TDRMDXoFisle31GATDkf3PdkR2K9QTs=";
47 i686_linux = "libs/x86/libbassmidi.so";
48 x86_64-linux = "libs/x86_64/libbassmidi.so";
49 armv7l-linux = "libs/armhf/libbassmidi.so";
50 aarch64-linux = "libs/aarch64/libbassmidi.so";
52 url = "https://web.archive.org/web/20240501180447/http://www.un4seen.com/files/bassmidi24-linux.zip";
53 hash = "sha256-HrF1chhGk32bKN3jwal44Tz/ENGe/zORsrLPeGAv1OE=";
60 i686_linux = "libs/x86/libbassmix.so";
61 x86_64-linux = "libs/x86_64/libbassmix.so";
62 armv7l-linux = "libs/armhf/libbassmix.so";
63 aarch64-linux = "libs/aarch64/libbassmix.so";
65 url = "https://web.archive.org/web/20240930183631/https://www.un4seen.com/files/bassmix24-linux.zip";
66 hash = "sha256-oxxBhsjeLvUodg2SOMDH4wUy5na3nxLTqYkB+iXbOgA=";
74 inherit (bass) version;
77 inherit (bass) hash url;
82 ${unzip}/bin/unzip $curSrc -d out
85 lpropagatedBuildInputs = [ unzip ];
90 if bass.so ? ${stdenv.hostPlatform.system} then
91 bass.so.${stdenv.hostPlatform.system}
93 throw "${name} not packaged for ${stdenv.hostPlatform.system} (yet).";
96 mkdir -p $out/{lib,include}
97 install -m644 -t $out/lib/ ${so}
98 install -m644 -t $out/include/ ${bass.h}
102 description = "Shareware audio library";
103 homepage = "https://www.un4seen.com/";
104 license = licenses.unfreeRedistributable;
105 platforms = builtins.attrNames bass.so;
106 maintainers = with maintainers; [ jacekpoz ];
111 lib.mapAttrs dropBass allBass