aboutsummaryrefslogblamecommitdiff
path: root/nixops/modules/task/taskwarrior-web.nix
blob: e38ada4e5b3fd4bac9efc3025ce4fcdec788da54 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
                                                                                        












                                                                               
                    








                                                 
{ env, ruby_2_6, bundlerEnv, defaultGemConfig, fetchedGithub, stdenv, writeText, pkgs }:
let
  varDir = "/var/lib/taskwarrior-web";
  socketsDir = "/run/taskwarrior-web";
  rubyRoot = stdenv.mkDerivation (fetchedGithub ./taskwarrior-web.json // rec {
    phases = [ "unpackPhase" "patchPhase" "installPhase" ];
    patches = [ ./fixes.patch ./thin.patch ];
    installPhase = ''
      cp -a . $out
      cp ${./Gemfile.lock} $out/Gemfile.lock
      '';
  });
  gems = bundlerEnv {
    name = "taskwarrior-web-env";
    ruby = ruby_2_6;
    pname = "taskwarrior-web";
    gemset = ./gemset.nix;
    gemdir = rubyRoot.out;
    groups = [ "default" "local" "development" ];
  };
in
  {
    inherit gems varDir socketsDir rubyRoot;
  }