nixpkgs/pkgs/by-name/ka/kasmweb/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

37 lines
723 B
Nix

{ stdenv
, lib
, fetchzip
}:
stdenv.mkDerivation rec {
pname = "kasmweb";
version = "1.15.0";
build = "06fdc8";
src = fetchzip {
url = "https://kasm-static-content.s3.amazonaws.com/kasm_release_${version}.${build}.tar.gz";
sha256 = "sha256-7z5lc4QEpQQdVGMEMc04wXlJTK5VXJ4rufZmDEflJLw=";
};
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 ];
};
}