2018-06-26 01:11:00 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig, autoPatchelfHook
|
|
|
|
, qtbase, libvirt, cutelyst, grantlee }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "virtlyst";
|
2018-08-27 20:59:27 +02:00
|
|
|
version = "1.2.0";
|
2018-06-26 01:11:00 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cutelyst";
|
|
|
|
repo = "Virtlyst";
|
|
|
|
rev = "v${version}";
|
2018-08-27 20:59:27 +02:00
|
|
|
sha256 = "1vgjai34hqppkpl0ryxkyhpm9dsx1chs3bii3wc3h40hl80n6dgy";
|
2018-06-26 01:11:00 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|