+ gems = bundlerEnv {
+ name = "diaspora-env";
+ # https://git.immae.eu/mantisbt/view.php?id=131
+ ruby = ruby_2_4.overrideAttrs(old: {
+ postInstall = builtins.replaceStrings [" --destdir $GEM_HOME"] [""] old.postInstall;
+ });
+ gemfile = "${diaspora}/Gemfile";
+ lockfile = "${diaspora}/Gemfile.lock";
+ gemset = ./gemset.nix;
+ groups = [ "postgresql" "default" "production" ];
+ gemConfig = defaultGemConfig // {
+ kostya-sigar = attrs: {
+ buildInputs = [ pkgs.perl ];
+ };
+ };
+ };