mirror of
https://github.com/lloeki/minimal-rack/
synced 2025-12-06 05:04:40 +01:00
Add minimal apps
This commit is contained in:
commit
6fda5da1d2
11 changed files with 629 additions and 0 deletions
25
shell.nix
Normal file
25
shell.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
pkgs ? import <nixpkgs> {},
|
||||
}:
|
||||
let
|
||||
ruby = pkgs.ruby_3_2;
|
||||
llvm = pkgs.llvmPackages_16;
|
||||
gcc = pkgs.gcc13;
|
||||
in llvm.stdenv.mkDerivation {
|
||||
name = "sandbox-minimal.shell";
|
||||
|
||||
buildInputs = [
|
||||
ruby
|
||||
|
||||
# for psych >= 5.1 pulled by rails 7.1
|
||||
pkgs.libyaml.dev
|
||||
];
|
||||
|
||||
|
||||
shellHook = ''
|
||||
export RUBY_VERSION="$(ruby -e 'puts RUBY_VERSION.gsub(/\d+$/, "0")')"
|
||||
export GEM_HOME="$(pwd)/vendor/bundle/ruby/$RUBY_VERSION"
|
||||
export BUNDLE_PATH="$(pwd)/vendor/bundle"
|
||||
export PATH="$GEM_HOME/bin:$PATH"
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue