From c84586e8f5dc0f755781148d115a94021b56b80e Mon Sep 17 00:00:00 2001 From: catvayor Date: Mon, 16 Dec 2024 15:37:59 +0100 Subject: [PATCH] feat(virtlyst): init --- pkgs/virtlyst.nix | 50 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 pkgs/virtlyst.nix diff --git a/pkgs/virtlyst.nix b/pkgs/virtlyst.nix new file mode 100644 index 0000000..9d5052a --- /dev/null +++ b/pkgs/virtlyst.nix @@ -0,0 +1,50 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + qt6, + cutelyst, + cutelee, + libvirt, + pkg-config, +}: + +stdenv.mkDerivation { + pname = "virtlyst"; + version = ">1.2.0"; + + src = fetchFromGitHub { + owner = "cutelyst"; + repo = "Virtlyst"; + rev = "603feb8f517e699e6f3366a18120fef1edd4c71b"; + hash = "sha256-04t9dVPd1TkFqOpatD3YMfXj+mOfJ8E5yLsf56DQsh8="; + }; + + dontWrapQtApps = true; + nativeBuildInputs = [ + cmake + pkg-config + ]; + buildInputs = [ + qt6.qtbase + cutelyst + cutelee + libvirt + ]; + + installPhase = '' + mkdir -p $out/lib $out/share + cp src/libVirtlyst.so $out/lib + cp -r ../root $out/share + ''; + + meta = { + description = "Web interface to manage virtual machines with libvirt"; + homepage = "https://github.com/cutelyst/Virtlyst.git"; + license = lib.licenses.agpl3Only; + maintainers = with lib.maintainers; [ ]; + mainProgram = "virtlyst"; + platforms = lib.platforms.all; + }; +}