3
0
Fork 0
forked from mirrors/nixpkgs

tensor: use date as version i/o git rev

This commit is contained in:
Peter Hoeg 2017-04-15 16:02:30 +08:00
parent 78e1843730
commit b7d2ffeb46

View file

@ -1,19 +1,17 @@
{ stdenv, fetchgit, qtbase, qtquickcontrols, qmakeHook, makeQtWrapper, makeDesktopItem }:
let
rev = "f3f3056d770d7fb4a21c610cee7936ee900569f5";
in stdenv.mkDerivation rec {
name = "tensor-git-${stdenv.lib.strings.substring 0 8 rev}";
stdenv.mkDerivation rec {
name = "tensor-git-${version}";
version = "2017-02-21";
src = fetchgit {
url = "https://github.com/davidar/tensor.git";
fetchSubmodules = true;
inherit rev;
rev = "f3f3056d770d7fb4a21c610cee7936ee900569f5";
sha256 = "19in8c7a2hxsx2c4lj540w5c3pn1882645m21l91mcriynqr67k9";
fetchSubmodules = true;
};
parallelBuilding = true;
enableParallelBuilding = true;
buildInputs = [ qtbase qtquickcontrols ];
nativeBuildInputs = [ qmakeHook makeQtWrapper ];
@ -26,7 +24,7 @@ in stdenv.mkDerivation rec {
desktopName = "Tensor Matrix Client";
genericName = meta.description;
categories = "Chat;Utility";
mimeType = "text/xml";
mimeType = "application/x-chat";
};
installPhase = ''
@ -51,5 +49,7 @@ in stdenv.mkDerivation rec {
description = "Cross-platform Qt5/QML-based Matrix client";
license = licenses.gpl3;
maintainers = with maintainers; [ peterhoeg ];
inherit (qtbase.meta) platforms;
inherit version;
};
}