-{ lib, pkgs, pkgsPrevious, config, myconfig, mylibs, ... }:
+{ lib, pkgs, config, myconfig, mylibs, ... }:
let
cfg = config.services.myTasks;
vardir = config.services.taskserver.dataDir;
chmod a+x $out/bin/taskserver-user-certs
patchShebangs $out/bin/taskserver-user-certs
'';
- taskwarrior-web = pkgsPrevious.callPackage ./taskwarrior-web.nix {
+ taskwarrior-web = pkgs.callPackage ./taskwarrior-web.nix {
inherit (mylibs) fetchedGithub;
inherit env;
};
path = [ pkgs.taskwarrior ];
environment.TASKRC = taskrc;
- environment.BUNDLE_PATH = "${taskwarrior-web.gems}/lib/ruby/gems/2.5.0";
+ environment.BUNDLE_PATH = "${taskwarrior-web.gems}/${taskwarrior-web.gems.ruby.gemPath}";
environment.BUNDLE_GEMFILE = "${taskwarrior-web.gems.confFiles}/Gemfile";
environment.LC_ALL = "fr_FR.UTF-8";
script = ''
- exec ${taskwarrior-web.gems}/lib/ruby/gems/2.5.0/bin/bundle exec thin start -R config.ru -S ${taskwarrior-web.socketsDir}/${name}.sock
+ exec ${taskwarrior-web.gems}/${taskwarrior-web.gems.ruby.gemPath}/bin/bundle exec thin start -R config.ru -S ${taskwarrior-web.socketsDir}/${name}.sock
'';
serviceConfig = {
-{ env, ruby_2_5, bundlerEnv, defaultGemConfig, fetchedGithub, stdenv, writeText, pkgs }:
+{ env, ruby_2_6, bundlerEnv, defaultGemConfig, fetchedGithub, stdenv, writeText, pkgs }:
let
varDir = "/var/lib/taskwarrior-web";
socketsDir = "/run/taskwarrior-web";
});
gems = bundlerEnv {
name = "taskwarrior-web-env";
- ruby = ruby_2_5;
+ ruby = ruby_2_6;
pname = "taskwarrior-web";
gemset = ./gemset.nix;
gemdir = rubyRoot.out;