9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
33 lines
865 B
Nix
33 lines
865 B
Nix
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, 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 pkg-config 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 ];
|
|
};
|
|
}
|