nixpkgs/pkgs/applications/networking/instant-messengers/mikutter/shell.nix

19 lines
363 B
Nix
Raw Normal View History

2017-05-18 00:47:45 +00:00
{ pkgs ? import <nixpkgs> {} }:
pkgs.stdenv.mkDerivation {
name = "mikutter-shell";
buildInputs = with pkgs; [
bundix
bundler
];
shellHook = ''
export MIKUTTER_CONFROOT="/homeless-shelter"
2017-05-18 00:47:45 +00:00
truncate --size 0 Gemfile.lock
bundle lock
bundle package --path=vendor/bundle --no-install
rm -rf vendor .bundle
bundix -d
'';
}