Merge pull request #67039 from peterhoeg/f/quaternion
quaternion: use qt specific mkDerivation
This commit is contained in:
commit
fa12335f42
@ -1,10 +1,11 @@
|
||||
{ stdenv, lib, fetchFromGitHub, cmake
|
||||
{ mkDerivation, stdenv, lib, fetchFromGitHub, cmake
|
||||
, qtbase, qtquickcontrols, qtkeychain, qtmultimedia, qttools
|
||||
, libqmatrixclient_0_5 }:
|
||||
|
||||
let
|
||||
generic = version: sha256: prefix: library: stdenv.mkDerivation rec {
|
||||
name = "quaternion-${version}";
|
||||
generic = version: sha256: prefix: library: mkDerivation rec {
|
||||
pname = "quaternion";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "QMatrixClient";
|
||||
@ -13,9 +14,9 @@ let
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
buildInputs = [ qtbase qtmultimedia qtquickcontrols qtkeychain qttools library ];
|
||||
buildInputs = [ qtbase qtmultimedia qtquickcontrols qtkeychain library ];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
nativeBuildInputs = [ cmake qttools ];
|
||||
|
||||
postInstall = if stdenv.isDarwin then ''
|
||||
mkdir -p $out/Applications
|
||||
@ -28,7 +29,7 @@ let
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cross-platform desktop IM client for the Matrix protocol";
|
||||
homepage = https://matrix.org/docs/projects/client/quaternion.html;
|
||||
homepage = "https://matrix.org/docs/projects/client/quaternion.html";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
inherit (qtbase.meta) platforms;
|
||||
|
Loading…
Reference in New Issue
Block a user