mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
19 lines
363 B
Nix
19 lines
363 B
Nix
{ 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
|
|
'';
|
|
}
|