mysql-admutils/shell.nix

25 lines
485 B
Nix
Raw Normal View History

2024-08-06 18:50:44 +02:00
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
packages = with pkgs; [
gcc
gnumake
automake
autoconf
];
env.MYSQL_DIR = toString (pkgs.symlinkJoin {
name ="libmysqlclient";
paths = with pkgs; [
libmysqlclient.out
libmysqlclient.dev
];
});
env.BUILD = pkgs.writeShellScript "build" ''
make maintainer-clean
autoreconf --force --install --symlink
./configure --with-mysql="$MYSQL_DIR" --sysconfdir=$(pwd)
make
'';
}