mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
20 lines
301 B
Nix
20 lines
301 B
Nix
|
{ 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
|
||
|
'';
|
||
|
}
|