3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/papertrail/shell.nix

20 lines
301 B
Nix
Raw Normal View History

{ pkgs ? import <nixpkgs> {} }:
pkgs.stdenv.mkDerivation {
name = "papertrail";
src = ./.;
buildInputs = with pkgs; [
bundix
bundler
ruby
];
shellHook = ''
truncate --size 0 Gemfile.lock
bundle install --path=vendor/bundle
rm -rf vendor .bundle
bundix
'';
}