about summary refs log tree commit diff
path: root/pkgs/tools/text/papertrail/shell.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/text/papertrail/shell.nix')
-rw-r--r--pkgs/tools/text/papertrail/shell.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/tools/text/papertrail/shell.nix b/pkgs/tools/text/papertrail/shell.nix
new file mode 100644
index 000000000000..55a7a18f57b1
--- /dev/null
+++ b/pkgs/tools/text/papertrail/shell.nix
@@ -0,0 +1,19 @@
+{ 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
+  '';
+}