aboutsummaryrefslogtreecommitdiff
path: root/flakes/taskwarrior-web/default.nix
blob: 7678b3c6e556270d5902948327742a99c4544006 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ ruby_2_6, bundlerEnv, src, stdenv }:
let
  gems = bundlerEnv {
    name = "taskwarrior-web-env";
    ruby = ruby_2_6;
    pname = "taskwarrior-web";
    gemset = ./gemset.nix;
    gemdir = package.out;
    groups = [ "default" "local" "development" ];
  };
  package = stdenv.mkDerivation {
    pname = "taskwarrior-web";
    version = src.shortRev;
    inherit src;
    phases = [ "unpackPhase" "patchPhase" "installPhase" ];
    patches = [ ./fixes.patch ./thin.patch ];
    installPhase = ''
      cp -a . $out
      cp ${./Gemfile.lock} $out/Gemfile.lock
      '';
    passthru = {
      inherit gems;
    };
  };
in package