Sha256: ea5d22bad33f74c6931e849eb2f0f01f0a99f7eed5886d3b6602ed0cf48d03c2
Contents?: true
Size: 952 Bytes
Versions: 8
Compression:
Stored size: 952 Bytes
Contents
{ # use the environment channel pkgs ? import <nixpkgs> {}, # use a pinned package state pinned ? import(fetchTarball("https://github.com/NixOS/nixpkgs/archive/14d9b465c71.tar.gz")) {}, }: let # specify ruby version to use ruby = pinned.ruby_3_1; # control llvm/clang version (e.g for packages built form source) llvm = pinned.llvmPackages_12; in llvm.stdenv.mkDerivation { # unique project name for this environment derivation name = "libddwaf-rb.devshell"; buildInputs = [ ruby ]; shellHook = '' # get major.minor.0 ruby version export RUBY_VERSION="$(ruby -e 'puts RUBY_VERSION.gsub(/\d+$/, "0")')" # make gem install work in-project, compatibly with bundler export GEM_HOME="$(pwd)/vendor/bundle/ruby/$RUBY_VERSION" # make bundle work in-project export BUNDLE_PATH="$(pwd)/vendor/bundle" # enable calling gem scripts without bundle exec export PATH="$GEM_HOME/bin:$PATH" ''; }
Version data entries
8 entries across 8 versions & 1 rubygems