about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/networking/instant-messengers/mikutter/shell.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/instant-messengers/mikutter/shell.nix')
-rw-r--r--nixpkgs/pkgs/applications/networking/instant-messengers/mikutter/shell.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/networking/instant-messengers/mikutter/shell.nix b/nixpkgs/pkgs/applications/networking/instant-messengers/mikutter/shell.nix
new file mode 100644
index 000000000000..bc83767af32a
--- /dev/null
+++ b/nixpkgs/pkgs/applications/networking/instant-messengers/mikutter/shell.nix
@@ -0,0 +1,18 @@
+{ pkgs ? import <nixpkgs> {} }:
+
+pkgs.stdenv.mkDerivation {
+  name = "mikutter-shell";
+  buildInputs = with pkgs; [
+    bundix
+    bundler
+  ];
+
+  shellHook = ''
+    export MIKUTTER_CONFROOT="/homeless-shelter"
+    truncate --size 0 Gemfile.lock
+    bundle lock
+    bundle package --path=vendor/bundle --no-install
+    rm -rf vendor .bundle
+    bundix -d
+  '';
+}