vaguerent/nix/vagrant.nix
2023-06-05 14:18:05 -07:00

53 lines
1.1 KiB
Nix

{ lib, stdenv, autoconf, autogen, automake, go, go-bindata, go-changelog
, go-mockery, go-protobuf, go-protobuf-json, go-tools, grpc-tools, grpcurl
, libarchive, libpng, libtool, mkShell, nasm, nodejs-16_x, pkg-config
, protobufPin, protoc-gen-doc, protoc-gen-go-grpc, ruby, sqlite, zlib }:
mkShell rec {
name = "vagrant";
packages = [
go
go-bindata
grpcurl
nodejs-16_x
protoc-gen-doc
ruby
# Need bsdtar to run ruby tests
libarchive
# Custom packages, added to overlay
protobufPin
protoc-gen-go-grpc
go-protobuf
go-protobuf-json
go-tools
go-mockery
go-changelog
grpc-tools
# Needed for website/
autoconf
autogen
automake
libpng
libtool
nasm
pkg-config
zlib
];
shellHook = ''
# workaround for npm/gulp dep compilation
# https://github.com/imagemin/optipng-bin/issues/108
LD=$CC
# Prepend binstubs to PATH for development, which causes Vagrant-agogo
# to use the legacy Vagrant in this repo. See client.initVagrantRubyRuntime
PATH=$PWD/binstubs:$PATH
'';
hardeningDisable = [ "fortify" ];
}