quaternion: 0.0.9.4c -> 0.0.9.4e
This commit is contained in:
@@ -1,46 +1,47 @@
|
|||||||
{ mkDerivation, stdenv, lib, fetchFromGitHub, cmake
|
{ mkDerivation, stdenv, lib, fetchFromGitHub, cmake
|
||||||
, qtbase, qtquickcontrols, qtkeychain, qtmultimedia, qttools
|
, qtbase, qtquickcontrols, qtquickcontrols2, qtkeychain, qtmultimedia, qttools
|
||||||
, libqmatrixclient_0_5
|
, libquotient, libsecret
|
||||||
, libsecret
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
mkDerivation rec {
|
||||||
generic = version: sha256: prefix: library: mkDerivation {
|
pname = "quaternion";
|
||||||
pname = "quaternion";
|
version = "0.0.9.4e";
|
||||||
inherit version;
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "QMatrixClient";
|
owner = "QMatrixClient";
|
||||||
repo = "Quaternion";
|
repo = "Quaternion";
|
||||||
rev = "${prefix}${version}";
|
rev = "${version}";
|
||||||
inherit sha256;
|
sha256 = "sha256-2yEiILiitRPj2hCodUDM8UNVq8crb9nyX21ebuh5EEM=";
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [ qtbase qtmultimedia qtquickcontrols qtkeychain library libsecret ];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake qttools ];
|
|
||||||
|
|
||||||
postInstall = if stdenv.isDarwin then ''
|
|
||||||
mkdir -p $out/Applications
|
|
||||||
mv $out/bin/quaternion.app $out/Applications
|
|
||||||
rmdir $out/bin || :
|
|
||||||
'' else ''
|
|
||||||
substituteInPlace $out/share/applications/quaternion.desktop \
|
|
||||||
--replace 'Exec=quaternion' "Exec=$out/bin/quaternion"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Cross-platform desktop IM client for the Matrix protocol";
|
|
||||||
homepage = "https://matrix.org/docs/projects/client/quaternion.html";
|
|
||||||
license = licenses.gpl3;
|
|
||||||
maintainers = with maintainers; [ peterhoeg ];
|
|
||||||
inherit (qtbase.meta) platforms;
|
|
||||||
inherit version;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
in rec {
|
buildInputs = [
|
||||||
quaternion = generic "0.0.9.4c" "12mkwiqqbi4774kwl7gha72jyf0jf547acy6rw8ry249zl4lja54" "" libqmatrixclient_0_5;
|
qtbase
|
||||||
|
qtmultimedia
|
||||||
|
qtquickcontrols
|
||||||
|
qtquickcontrols2
|
||||||
|
qtkeychain
|
||||||
|
libquotient
|
||||||
|
libsecret
|
||||||
|
];
|
||||||
|
|
||||||
quaternion-git = quaternion;
|
nativeBuildInputs = [ cmake qttools ];
|
||||||
|
|
||||||
|
postInstall = if stdenv.isDarwin then ''
|
||||||
|
mkdir -p $out/Applications
|
||||||
|
mv $out/bin/quaternion.app $out/Applications
|
||||||
|
rmdir $out/bin || :
|
||||||
|
'' else ''
|
||||||
|
substituteInPlace $out/share/applications/com.github.quaternion.desktop \
|
||||||
|
--replace 'Exec=quaternion' "Exec=$out/bin/quaternion"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description =
|
||||||
|
"Cross-platform desktop IM client for the Matrix protocol";
|
||||||
|
homepage = "https://matrix.org/docs/projects/client/quaternion.html";
|
||||||
|
license = licenses.gpl3;
|
||||||
|
maintainers = with maintainers; [ peterhoeg ];
|
||||||
|
inherit (qtbase.meta) platforms;
|
||||||
|
inherit version;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1242,9 +1242,7 @@ in
|
|||||||
|
|
||||||
libquotient = libsForQt5.callPackage ../development/libraries/libquotient {};
|
libquotient = libsForQt5.callPackage ../development/libraries/libquotient {};
|
||||||
|
|
||||||
inherit (libsForQt5.callPackage ../applications/networking/instant-messengers/quaternion { })
|
quaternion = libsForQt5.callPackage ../applications/networking/instant-messengers/quaternion { };
|
||||||
quaternion
|
|
||||||
quaternion-git;
|
|
||||||
|
|
||||||
tensor = libsForQt5.callPackage ../applications/networking/instant-messengers/tensor { };
|
tensor = libsForQt5.callPackage ../applications/networking/instant-messengers/tensor { };
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user