quaternion: git -> 0.0.4
This commit is contained in:
parent
c5717d0dc8
commit
388c732001
@ -1,29 +1,29 @@
|
|||||||
{ mkDerivation, lib, fetchgit, qtbase, qtquickcontrols, cmake }:
|
{ stdenv, lib, fetchFromGitHub, qtbase, qtquickcontrols, cmake, libqmatrixclient }:
|
||||||
|
|
||||||
mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "quaternion-git-${version}";
|
name = "quaternion-${version}";
|
||||||
version = "2017-10-07";
|
version = "0.0.4";
|
||||||
|
|
||||||
# quaternion and tensor share the same libqmatrixclient library as a git submodule
|
# libqmatrixclient doesn't support dynamic linking as of 0.1 so we simply pull in the source
|
||||||
#
|
|
||||||
# As all 3 projects are in very early stages, we simply load the submodule.
|
|
||||||
#
|
|
||||||
# At some point in the future, we should separate out libqmatrixclient into its own
|
|
||||||
# derivation.
|
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/QMatrixClient/Quaternion.git";
|
owner = "QMatrixClient";
|
||||||
rev = "1007f2ca4ad5e8cc5dba437d6a0cdea07d1f1332";
|
repo = "Quaternion";
|
||||||
sha256 = "0hvc81ld7fcwyrxsr2q3yvzh0rzhgmflby4nmyzcbjds7b7pv0xq";
|
rev = "v${version}";
|
||||||
fetchSubmodules = true;
|
sha256 = "0an2nvwjs1hf7cb4maaj3rskhgsjgimzazsx53ndxskzwcssidvi";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ qtbase qtquickcontrols ];
|
buildInputs = [ qtbase qtquickcontrols libqmatrixclient ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
cmakeFlags = [
|
enableParallelBuilding = true;
|
||||||
"-Wno-dev"
|
|
||||||
];
|
# take the source from libqmatrixclient
|
||||||
|
postPatch = ''
|
||||||
|
rm -rf lib
|
||||||
|
ln -s ${libqmatrixclient.src} lib
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
substituteInPlace $out/share/applications/quaternion.desktop \
|
substituteInPlace $out/share/applications/quaternion.desktop \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user