libbass: update and use real version numbers
Upstream doesn't indeed have any way of getting versioned library, as per http://www.un4seen.com/forum/?topic=18614.0.
This commit is contained in:
parent
a2bd8da766
commit
2d0a2044b3
@ -1,32 +1,38 @@
|
|||||||
{ stdenv, unzip, fetchurl }:
|
{ stdenv, unzip, fetchurl }:
|
||||||
|
|
||||||
let
|
# Upstream changes files in-place, to update:
|
||||||
version = "24";
|
# 1. Check latest version at http://www.un4seen.com/
|
||||||
|
# 2. Update `version`s and `sha256` sums.
|
||||||
|
# See also http://www.un4seen.com/forum/?topic=18614.0
|
||||||
|
|
||||||
|
let
|
||||||
allBass = {
|
allBass = {
|
||||||
bass = {
|
bass = {
|
||||||
h = "bass.h";
|
h = "bass.h";
|
||||||
|
version = "2.4.14";
|
||||||
so = {
|
so = {
|
||||||
i686_linux = "libbass.so";
|
i686_linux = "libbass.so";
|
||||||
x86_64-linux = "x64/libbass.so";
|
x86_64-linux = "x64/libbass.so";
|
||||||
};
|
};
|
||||||
urlpath = "bass${version}-linux.zip";
|
urlpath = "bass24-linux.zip";
|
||||||
sha256 = "1hjxp1akj8367qlglv5rqpwq2dimfz3bkllwq39abavz4sp8smjz";
|
sha256 = "1nyzs08z0djyvz6jx1y9y99y0ksp4sxz9l2x43k1c9irls24xpfy";
|
||||||
};
|
};
|
||||||
|
|
||||||
bass_fx = {
|
bass_fx = {
|
||||||
h = "C/bass_fx.h";
|
h = "C/bass_fx.h";
|
||||||
|
version = "2.4.12.1";
|
||||||
so = {
|
so = {
|
||||||
i686_linux = "libbass_fx.so";
|
i686_linux = "libbass_fx.so";
|
||||||
x86_64-linux = "x64/libbass_fx.so";
|
x86_64-linux = "x64/libbass_fx.so";
|
||||||
};
|
};
|
||||||
urlpath = "z/0/bass_fx${version}-linux.zip";
|
urlpath = "z/0/bass_fx24-linux.zip";
|
||||||
sha256 = "1q0g74z7iyhxqps5b3gnnbic8v2jji1r0mkvais57lsx8y21sbin";
|
sha256 = "1q0g74z7iyhxqps5b3gnnbic8v2jji1r0mkvais57lsx8y21sbin";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
dropBass = name: bass: stdenv.mkDerivation {
|
dropBass = name: bass: stdenv.mkDerivation {
|
||||||
name = "lib${name}-${version}";
|
pname = "lib${name}";
|
||||||
|
inherit (bass) version;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.un4seen.com/files/${bass.urlpath}";
|
url = "https://www.un4seen.com/files/${bass.urlpath}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user