about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/mikutter/shell.nix
blob: bc83767af32a397500f77d508753e97c0c8df101 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
  '';
}