add nix-shell
This commit is contained in:
parent
f290245b41
commit
78e590b41f
|
@ -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
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue