Compare commits

...

1 Commits

Author SHA1 Message Date
Oystein Kristoffer Tveit 78e590b41f
add nix-shell 2024-08-06 18:50:44 +02:00
2 changed files with 25 additions and 0 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use nix

24
shell.nix Normal file
View File

@ -0,0 +1,24 @@
{ 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
'';
}