lol

Merge pull request #145154 from yuuyins/libsbsms

libsbsms: init at 2.0.2 and 2.3.0

authored by

Thiago Kenji Okada and committed by
GitHub
3e4b2ace 08c9f103

+86
+36
pkgs/development/libraries/libsbsms/common.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , substituteAll 5 + , pname 6 + , version 7 + , url 8 + , sha256 9 + , homepage 10 + }: 11 + 12 + stdenv.mkDerivation rec { 13 + inherit pname version; 14 + 15 + src = fetchurl { 16 + inherit url sha256; 17 + }; 18 + 19 + patches = [ 20 + # Fix buidling on platforms other than x86 21 + (substituteAll { 22 + src = ./configure.patch; 23 + msse = lib.optionalString stdenv.isx86_64 "-msse"; 24 + }) 25 + ]; 26 + 27 + doCheck = true; 28 + 29 + meta = { 30 + inherit homepage; 31 + description = "Subband sinusoidal modeling library for time stretching and pitch scaling audio"; 32 + maintainers = with lib.maintainers; [ yuu ]; 33 + license = lib.licenses.gpl2; 34 + platforms = lib.platforms.all; 35 + }; 36 + }
+22
pkgs/development/libraries/libsbsms/configure.patch
··· 1 + diff --git a/configure b/configure 2 + index 3d40335..faa3ac6 100755 3 + --- a/configure 4 + +++ b/configure 5 + @@ -14722,7 +14722,7 @@ if ${ax_cv_cxx_flags__msse+:} false; then : 6 + else 7 + 8 + ax_save_FLAGS=$CXXFLAGS 9 + - CXXFLAGS="-msse" 10 + + CXXFLAGS="@msse@" 11 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12 + /* end confdefs.h. */ 13 + 14 + @@ -14747,7 +14747,7 @@ eval ax_check_compiler_flags=$ax_cv_cxx_flags__msse 15 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 16 + $as_echo "$ax_check_compiler_flags" >&6; } 17 + if test "x$ax_check_compiler_flags" = xyes; then 18 + - SBSMS_CFLAGS="$SBSMS_CFLAGS -msse" 19 + + SBSMS_CFLAGS="$SBSMS_CFLAGS @msse@" 20 + else 21 + as_fn_error $? "Need a version of gcc with -msse" "$LINENO" 5 22 + fi
+22
pkgs/development/libraries/libsbsms/default.nix
··· 1 + let 2 + pname = "libsbsms"; 3 + in 4 + pkgs: rec { 5 + libsbsms_2_0_2 = pkgs.callPackage ./common.nix rec { 6 + inherit pname; 7 + version = "2.0.2"; 8 + url = "mirror://sourceforge/sbsms/${pname}-${version}.tar.gz"; 9 + sha256 = "sha256-zqs9lwZkszcFe0a89VKD1Q0ynaY2v4PQ7nw24iNBru4="; 10 + homepage = "https://sourceforge.net/projects/sbsms/files/sbsms"; 11 + }; 12 + 13 + libsbsms_2_3_0 = pkgs.callPackage ./common.nix rec { 14 + inherit pname; 15 + version = "2.3.0"; 16 + url = "https://github.com/claytonotey/${pname}/archive/refs/tags/${version}.tar.gz"; 17 + sha256 = "sha256-T4jRUrwG/tvanV1lUX1AJUpzEMkFBgGpMSIwnUWv0sk="; 18 + homepage = "https://github.com/claytonotey/libsbsms"; 19 + }; 20 + 21 + libsbsms = libsbsms_2_0_2; 22 + }
+6
pkgs/top-level/all-packages.nix
··· 4074 4074 4075 4075 libpinyin = callPackage ../development/libraries/libpinyin { }; 4076 4076 4077 + inherit (import ../development/libraries/libsbsms pkgs) 4078 + libsbsms 4079 + libsbsms_2_0_2 4080 + libsbsms_2_3_0 4081 + ; 4082 + 4077 4083 libskk = callPackage ../development/libraries/libskk { 4078 4084 inherit (gnome) gnome-common; 4079 4085 };