25 lines
626 B
Nix
25 lines
626 B
Nix
|
{ pkgs ? import <nixpkgs> { } }:
|
||
|
let
|
||
|
src = import ./source.nix;
|
||
|
gems = pkgs.bundlerEnv {
|
||
|
name = "mastodon-gems";
|
||
|
gemdir = ./.;
|
||
|
};
|
||
|
yarns = pkgs.mkYarnPackage {
|
||
|
pname = "mastodon-yarns";
|
||
|
yarnNix = ./yarn.nix;
|
||
|
packageJSON = ./package.json;
|
||
|
version = "0.0.0";
|
||
|
inherit src;
|
||
|
};
|
||
|
in
|
||
|
pkgs.mkShell {
|
||
|
packages = [ gems gems.wrappedRuby pkgs.yarn pkgs.nodejs pkgs.foreman ];
|
||
|
|
||
|
RAILS_ENV = "development";
|
||
|
|
||
|
# The rails bits default to this, but the node bits don't, which cause weird
|
||
|
# errors trying to run the streaming component without sourcing a .envrc.
|
||
|
DB_HOST = "/var/run/postgresql";
|
||
|
}
|