vaguerent/nix/vagrant.nix
2024-01-03 18:03:48 -08:00

55 lines
1.1 KiB
Nix

{ lib, stdenv, autoconf, autogen, automake, go, go-bindata, go-changelog
, go-mockery, go-protobuf, go-protobuf-json, gotools, grpc-tools, grpcurl
, libarchive, libpng, libtool, mkShell, nasm, nodejs_20, pkg-config, protobuf
, protoc-gen-doc, protoc-gen-go-grpc, ruby_3_2, openssl_3_1, sqlite, zlib }:
mkShell rec {
name = "vagrant";
packages = [
go
go-bindata
grpcurl
nodejs_20
protoc-gen-doc
ruby_3_2
openssl_3_1
protobuf
protoc-gen-go-grpc
go-protobuf
go-protobuf-json
gotools
go-mockery
grpc-tools
# Need bsdtar to run ruby tests
libarchive
# Custom packages, added to overlay
go-changelog
# 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" ];
}