@@ -0,0 +1,32 @@
1+{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig, autoPatchelfHook
2+, qtbase, libvirt, cutelyst, grantlee }:
3+
4+stdenv.mkDerivation rec {
5+ name = "virtlyst-${version}";
6+ version = "1.1.0";
7+
8+ src = fetchFromGitHub {
9+ owner = "cutelyst";
10+ repo = "Virtlyst";
11+ rev = "v${version}";
12+ sha256 = "1rqv93dys666wsqbg1lvl3pjl8gpdx3dc3y71m3r8apalgr11ikw";
13+ };
14+
15+ nativeBuildInputs = [ cmake pkgconfig autoPatchelfHook ];
16+ buildInputs = [ qtbase libvirt cutelyst grantlee ];
17+
18+ installPhase = ''
19+ mkdir -p $out/lib
20+ cp src/libVirtlyst.so $out/lib
21+ cp -r ../root $out
22+ '';
23+
24+ patches = [ ./add-admin-password-env.patch ];
25+
26+ meta = with lib; {
27+ description = "Web interface to manage virtual machines with libvirt";
28+ homepage = https://github.com/cutelyst/Virtlyst;
29+ license = licenses.agpl3Plus;
30+ maintainers = with maintainers; [ fpletz ];
31+ };
32+}