tensor: use date as version i/o git rev
This commit is contained in:
parent
78e1843730
commit
b7d2ffeb46
@ -1,32 +1,30 @@
|
|||||||
{ stdenv, fetchgit, qtbase, qtquickcontrols, qmakeHook, makeQtWrapper, makeDesktopItem }:
|
{ stdenv, fetchgit, qtbase, qtquickcontrols, qmakeHook, makeQtWrapper, makeDesktopItem }:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
rev = "f3f3056d770d7fb4a21c610cee7936ee900569f5";
|
name = "tensor-git-${version}";
|
||||||
|
version = "2017-02-21";
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
name = "tensor-git-${stdenv.lib.strings.substring 0 8 rev}";
|
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://github.com/davidar/tensor.git";
|
url = "https://github.com/davidar/tensor.git";
|
||||||
|
rev = "f3f3056d770d7fb4a21c610cee7936ee900569f5";
|
||||||
|
sha256 = "19in8c7a2hxsx2c4lj540w5c3pn1882645m21l91mcriynqr67k9";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
inherit rev;
|
|
||||||
sha256 = "19in8c7a2hxsx2c4lj540w5c3pn1882645m21l91mcriynqr67k9";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
parallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
buildInputs = [ qtbase qtquickcontrols ];
|
buildInputs = [ qtbase qtquickcontrols ];
|
||||||
nativeBuildInputs = [ qmakeHook makeQtWrapper ];
|
nativeBuildInputs = [ qmakeHook makeQtWrapper ];
|
||||||
|
|
||||||
desktopItem = makeDesktopItem {
|
desktopItem = makeDesktopItem {
|
||||||
name = "tensor";
|
name = "tensor";
|
||||||
exec = "@bin@";
|
exec = "@bin@";
|
||||||
icon = "tensor.png";
|
icon = "tensor.png";
|
||||||
comment = meta.description;
|
comment = meta.description;
|
||||||
desktopName = "Tensor Matrix Client";
|
desktopName = "Tensor Matrix Client";
|
||||||
genericName = meta.description;
|
genericName = meta.description;
|
||||||
categories = "Chat;Utility";
|
categories = "Chat;Utility";
|
||||||
mimeType = "text/xml";
|
mimeType = "application/x-chat";
|
||||||
};
|
};
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -51,5 +49,7 @@ in stdenv.mkDerivation rec {
|
|||||||
description = "Cross-platform Qt5/QML-based Matrix client";
|
description = "Cross-platform Qt5/QML-based Matrix client";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
maintainers = with maintainers; [ peterhoeg ];
|
maintainers = with maintainers; [ peterhoeg ];
|
||||||
|
inherit (qtbase.meta) platforms;
|
||||||
|
inherit version;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user