nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

mysql51: Refactor

+10 -5
+10 -5
pkgs/servers/sql/mysql/5.1.x.nix
··· 1 - {stdenv, fetchurl, ps, ncurses, zlib, perl, openssl}: 1 + { stdenv, fetchurl, ps, ncurses, zlib, perl, openssl }: 2 2 3 3 # Note: zlib is not required; MySQL can use an internal zlib. 4 4 ··· 10 10 sha256 = "1dfwi4ck0vq6sdci6gz0031s7zz5lc3pddqlgm0292s00l9y5sq5"; 11 11 }; 12 12 13 - buildInputs = [ncurses zlib perl openssl] ++ stdenv.lib.optional stdenv.isLinux ps; 13 + buildInputs = [ ncurses zlib perl openssl ] ++ stdenv.lib.optional stdenv.isLinux ps; 14 14 15 - configureFlags = "--enable-thread-safe-client --with-ssl=${openssl} --with-embedded-server --with-plugins=max-no-ndb" + 16 - (if stdenv.system == "x86_64-linux" then " --with-lib-ccflags=-fPIC" else ""); 15 + configureFlags = [ 16 + "--enable-thread-safe-client" 17 + "--with-ssl=${openssl}" 18 + "--with-embedded-server" 19 + "--with-plugins=max-no-ndb" 20 + "--with-unix-socket-path=/run/mysqld/mysqld.sock" 21 + ] ++ stdenv.lib.optional (stdenv.system == "x86_64-linux") " --with-lib-ccflags=-fPIC"; 17 22 18 23 NIX_CFLAGS_COMPILE = if stdenv.system == "x86_64-linux" then "-fPIC" else ""; 19 24 NIX_CFLAGS_CXXFLAGS = if stdenv.system == "x86_64-linux" then "-fPIC" else ""; 20 25 NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s"; 21 26 22 - patches = [./abi_check.patch]; 27 + patches = [ ./abi_check.patch ]; 23 28 24 29 postInstall = 25 30 ''