uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
14
pkgs/servers/web-apps/virtlyst/add-admin-password-env.patch
Normal file
14
pkgs/servers/web-apps/virtlyst/add-admin-password-env.patch
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
diff --git a/src/virtlyst.cpp b/src/virtlyst.cpp
|
||||
index acd195d..8809e4f 100644
|
||||
--- a/src/virtlyst.cpp
|
||||
+++ b/src/virtlyst.cpp
|
||||
@@ -340,7 +340,8 @@ bool Virtlyst::createDB()
|
||||
qCCritical(VIRTLYST) << "Error creating database" << query.lastError().text();
|
||||
return false;
|
||||
}
|
||||
- const QString password = QString::fromLatin1(QUuid::createUuid().toRfc4122().toHex());
|
||||
+ const QString password = qEnvironmentVariable("VIRTLYST_ADMIN_PASSWORD",
|
||||
+ QString::fromLatin1(QUuid::createUuid().toRfc4122().toHex()));
|
||||
query.bindValue(QStringLiteral(":password"), QString::fromLatin1(
|
||||
CredentialPassword::createPassword(password.toUtf8(), QCryptographicHash::Sha256, 10000, 16, 16)));
|
||||
if (!query.exec()) {
|
||||
39
pkgs/servers/web-apps/virtlyst/default.nix
Normal file
39
pkgs/servers/web-apps/virtlyst/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ 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 ];
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/lib
|
||||
cp src/libVirtlyst${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib
|
||||
cp -r ../root $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
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;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ fpletz ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue