Upgrade from 18.09 to 19.03 broke because of change at
https://github.com/NixOS/nixpkgs/pull/51842
This partially reverts the change, which permits to build again diaspora
using the latest pkgs version.
Related issue: https://git.immae.eu/mantisbt/view.php?id=131
-{ lib, pkgs, pkgsPrevious, config, myconfig, mylibs, ... }:
+{ lib, pkgs, config, myconfig, mylibs, ... }:
let
- diaspora = pkgsPrevious.callPackage ./diaspora.nix {
+ diaspora = pkgs.callPackage ./diaspora.nix {
inherit (mylibs) fetchedGithub;
env = myconfig.env.tools.diaspora;
};
});
gems = bundlerEnv {
name = "diaspora-env";
- ruby = ruby_2_4;
+ # 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;