Browse Source

WIP percona package compilation

percona
m1cr0man 2 years ago
parent
commit
43dee2948e
1 changed files with 11 additions and 6 deletions
  1. +11
    -6
      packages/percona-server80.nix

+ 11
- 6
packages/percona-server80.nix View File

@@ -1,15 +1,20 @@
{ pkgs ? import <nixpkgs> {} }:
let
version = "8.0.16-7";
in pkgs.percona-server.overrideAttrs (oldAttrs: {
in pkgs.mysql80.overrideAttrs (oldAttrs: {
name = "percona-server80";
buildInputs = oldAttrs.buildInputs ++ [ pkgs.rapidjson pkgs.curl pkgs.boost ];
# patches = [
# ./no-werror.patch
# ];

src = pkgs.fetchurl {
url = "https://www.percona.com/downloads/Percona-Server-LATEST/Percona-Server-${version}/source/tarball/percona-server-${version}.tar.gz";
url = "https://www.percona.com/downloads/Percona-Server-8.0/Percona-Server-${version}/source/tarball/percona-server-${version}.tar.gz";
sha256 = "1677jm271l8jy7566r7lb5z1bfbfrc50yfkvggs58w4i4df6i3wg";
};

buildInputs = oldAttrs.buildInputs ++ [
pkgs.rapidjson pkgs.curl pkgs.boost169 pkgs.libtirpc pkgs.cyrus_sasl
];
cmakeFlags = oldAttrs.cmakeFlags ++ [
"-DWITH_ROCKSDB=0"
];

meta = pkgs.percona-server.meta // { inherit version; };
})

Loading…
Cancel
Save