2021-01-19 06:50:56 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, autoPatchelfHook
|
2018-06-26 00:11:00 +01:00
|
|
|
, qtbase, libvirt, cutelyst, grantlee }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "virtlyst";
|
2018-08-27 19:59:27 +01:00
|
|
|
version = "1.2.0";
|
2018-06-26 00:11:00 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cutelyst";
|
|
|
|
repo = "Virtlyst";
|
|
|
|
rev = "v${version}";
|
2018-08-27 19:59:27 +01:00
|
|
|
sha256 = "1vgjai34hqppkpl0ryxkyhpm9dsx1chs3bii3wc3h40hl80n6dgy";
|
2018-06-26 00:11:00 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config autoPatchelfHook ];
|
2018-06-26 00:11:00 +01:00
|
|
|
buildInputs = [ qtbase libvirt cutelyst grantlee ];
|
|
|
|
|
2021-01-12 11:50:23 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2018-06-26 00:11:00 +01:00
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/cutelyst/Virtlyst";
|
2018-06-26 00:11:00 +01:00
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
};
|
|
|
|
}
|