mastodon: migrate from ruby 2.7 to 3.0
This commit is contained in:
parent
dfd9d996e2
commit
199690337d
@ -1,5 +1,5 @@
|
|||||||
{ lib, stdenv, nodejs-slim, mkYarnPackage, fetchFromGitHub, bundlerEnv
|
{ lib, stdenv, nodejs-slim, mkYarnPackage, fetchFromGitHub, bundlerEnv
|
||||||
, yarn, callPackage, imagemagick, ffmpeg, file, ruby_2_7, writeShellScript
|
, yarn, callPackage, imagemagick, ffmpeg, file, ruby_3_0, writeShellScript
|
||||||
|
|
||||||
# Allow building a fork or custom version of Mastodon:
|
# Allow building a fork or custom version of Mastodon:
|
||||||
, pname ? "mastodon"
|
, pname ? "mastodon"
|
||||||
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
|||||||
mastodon-gems = bundlerEnv {
|
mastodon-gems = bundlerEnv {
|
||||||
name = "${pname}-gems-${version}";
|
name = "${pname}-gems-${version}";
|
||||||
inherit version;
|
inherit version;
|
||||||
ruby = ruby_2_7;
|
ruby = ruby_3_0;
|
||||||
gemdir = src;
|
gemdir = src;
|
||||||
gemset = dependenciesDir + "/gemset.nix";
|
gemset = dependenciesDir + "/gemset.nix";
|
||||||
# This fix (copied from https://github.com/NixOS/nixpkgs/pull/76765) replaces the gem
|
# This fix (copied from https://github.com/NixOS/nixpkgs/pull/76765) replaces the gem
|
||||||
|
Loading…
Reference in New Issue
Block a user