about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/web-apps/virtlyst/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/web-apps/virtlyst/default.nix')
-rw-r--r--nixpkgs/pkgs/servers/web-apps/virtlyst/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/web-apps/virtlyst/default.nix b/nixpkgs/pkgs/servers/web-apps/virtlyst/default.nix
new file mode 100644
index 000000000000..0c51b6b13cdd
--- /dev/null
+++ b/nixpkgs/pkgs/servers/web-apps/virtlyst/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig, autoPatchelfHook
+, qtbase, libvirt, cutelyst, grantlee }:
+
+stdenv.mkDerivation rec {
+  name = "virtlyst-${version}";
+  version = "1.2.0";
+
+  src = fetchFromGitHub {
+    owner = "cutelyst";
+    repo = "Virtlyst";
+    rev = "v${version}";
+    sha256 = "1vgjai34hqppkpl0ryxkyhpm9dsx1chs3bii3wc3h40hl80n6dgy";
+  };
+
+  nativeBuildInputs = [ cmake pkgconfig autoPatchelfHook ];
+  buildInputs = [ qtbase libvirt cutelyst grantlee ];
+
+  installPhase = ''
+    mkdir -p $out/lib
+    cp src/libVirtlyst.so $out/lib
+    cp -r ../root $out
+  '';
+
+  patches = [ ./add-admin-password-env.patch ];
+
+  meta = with lib; {
+    description = "Web interface to manage virtual machines with libvirt";
+    homepage = https://github.com/cutelyst/Virtlyst;
+    license = licenses.agpl3Plus;
+    maintainers = with maintainers; [ fpletz ];
+  };
+}