aboutsummaryrefslogblamecommitdiff
path: root/flakes/taskwarrior-web/default.nix
blob: 7678b3c6e556270d5902948327742a99c4544006 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                      
   

                                 
                    

                              
                         

                                                 



                                 








                                                           
    
          
{ 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