about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/web-apps/kasmweb/default.nix
blob: f83db6baddc543e38104bf846bc57748b46a2779 (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
26
27
28
29
30
31
32
33
34
35
36
{ stdenv
, lib
, fetchzip
}:

stdenv.mkDerivation rec {
  pname = "kasmweb";
  version = "1.12.0";
  build = "d4fd8a";

  src = fetchzip {
    url = "https://kasm-static-content.s3.amazonaws.com/kasm_release_${version}.${build}.tar.gz";
    sha256 = "sha256-dCjWmI8gYtoMiMHVNgTg2ZROHXvT4ulynNvnKfMxURo=";
  };

  dontConfigure = true;
  dontBuild = true;

  installPhase = ''
    runHook preInstall

    mkdir $out
    rm bin/utils/yq*
    cp -r bin conf www $out/

    runHook postInstall
  '';


  meta = with lib; {
    homepage = "https://www.kasmweb.com/";
    description = "Streaming containerized apps and desktops to end-users";
    license = licenses.unfree;
    maintainers = with maintainers; [ s1341 ];
  };
}