diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 01:35:06 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 02:11:48 +0200 |
commit | 1a64deeb894dc95e2645a75771732c6cc53a79ad (patch) | |
tree | 1b9df4838f894577a09b9b260151756272efeb53 /flakes/mypackages/overlays/databases/mysql/default.nix | |
parent | fa25ffd4583cc362075cd5e1b4130f33306103f0 (diff) | |
download | Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.gz Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.zst Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.zip |
Squash changes containing private information
There were a lot of changes since the previous commit, but a lot of them
contained personnal information about users. All thos changes got
stashed into a single commit (history is kept in a different place) and
private information was moved in a separate private repository
Diffstat (limited to 'flakes/mypackages/overlays/databases/mysql/default.nix')
-rw-r--r-- | flakes/mypackages/overlays/databases/mysql/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/flakes/mypackages/overlays/databases/mysql/default.nix b/flakes/mypackages/overlays/databases/mysql/default.nix new file mode 100644 index 0000000..45dc468 --- /dev/null +++ b/flakes/mypackages/overlays/databases/mysql/default.nix | |||
@@ -0,0 +1,28 @@ | |||
1 | self: super: rec { | ||
2 | #mariadb = super.mariadb_106.overrideAttrs(old: { | ||
3 | # passthru = old.passthru // { mysqlVersion = "5.7"; }; | ||
4 | #}); | ||
5 | #mariadb_pam = super.mariadb_106.overrideAttrs(old: { | ||
6 | # cmakeFlags = old.cmakeFlags ++ [ "-DWITH_AUTHENTICATION_PAM=ON" ]; | ||
7 | # buildInputs = old.buildInputs ++ [ self.pam ]; | ||
8 | # outputs = old.outputs ++ [ "dev" ]; | ||
9 | # passthru = old.passthru // { mysqlVersion = "5.7"; }; | ||
10 | # postInstall = '' | ||
11 | # mkdir -p $dev $dev/lib $dev/share | ||
12 | # cp -a $out/include $dev | ||
13 | # cp -a $out/lib/{libmariadbclient.a,libmysqlclient.a,libmysqlclient_r.a,libmysqlservices.a} $dev/lib | ||
14 | # cp -a $out/lib/pkgconfig $dev/lib | ||
15 | # cp -a $out/share/aclocal $dev/share | ||
16 | # '' + old.postInstall; | ||
17 | #}); | ||
18 | ## This patched version includes C headers from the server part (see | ||
19 | ## above). It seems to be required to build pam support in clients. | ||
20 | #libmysqlclient_pam = super.libmysqlclient.overrideAttrs(old: { | ||
21 | # prePatch = old.prePatch or "" + '' | ||
22 | # sed -i -e '/define INCLUDE/s|"$| -I@CMAKE_SYSROOT@@CMAKE_INSTALL_PREFIX@/@INSTALL_INCLUDEDIR@/mysql/server -I@CMAKE_SYSROOT@@CMAKE_INSTALL_PREFIX@/@INSTALL_INCLUDEDIR@/mysql/server/private"|' mariadb_config/mariadb_config.c.in | ||
23 | # ''; | ||
24 | # postInstall = old.postInstall or "" + '' | ||
25 | # cp -a ${mariadb_pam.dev}/include/* $out/include/mariadb | ||
26 | # ''; | ||
27 | #}); | ||
28 | } | ||