about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/web-apps/virtlyst/default.nix
blob: 4be14b37bd2bd6815acb3134124ddc4026f40f27 (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
{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig, autoPatchelfHook
, qtbase, libvirt, cutelyst, grantlee }:

stdenv.mkDerivation rec {
  pname = "virtlyst";
  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 ];
  };
}