diff options
author | Peter Hoeg <peter@hoeg.com> | 2017-04-15 16:02:30 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2017-04-15 16:02:42 +0800 |
commit | b7d2ffeb46801729b2e5080fe8e7529cad81e78d (patch) | |
tree | 44c3c0eb469742125614d903b4e5ef50d56736cd /pkgs/applications/networking/instant-messengers/tensor/default.nix | |
parent | 78e1843730658b14d8b58a7c8b9c723dfb345972 (diff) | |
download | nixpkgs-b7d2ffeb46801729b2e5080fe8e7529cad81e78d.tar nixpkgs-b7d2ffeb46801729b2e5080fe8e7529cad81e78d.tar.gz nixpkgs-b7d2ffeb46801729b2e5080fe8e7529cad81e78d.tar.bz2 nixpkgs-b7d2ffeb46801729b2e5080fe8e7529cad81e78d.tar.lz nixpkgs-b7d2ffeb46801729b2e5080fe8e7529cad81e78d.tar.xz nixpkgs-b7d2ffeb46801729b2e5080fe8e7529cad81e78d.tar.zst nixpkgs-b7d2ffeb46801729b2e5080fe8e7529cad81e78d.zip |
tensor: use date as version i/o git rev
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/tensor/default.nix')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/tensor/default.nix | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/pkgs/applications/networking/instant-messengers/tensor/default.nix b/pkgs/applications/networking/instant-messengers/tensor/default.nix index ed78274c799..0dfda79e767 100644 --- a/pkgs/applications/networking/instant-messengers/tensor/default.nix +++ b/pkgs/applications/networking/instant-messengers/tensor/default.nix @@ -1,32 +1,30 @@ { 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"; + url = "https://github.com/davidar/tensor.git"; + rev = "f3f3056d770d7fb4a21c610cee7936ee900569f5"; + sha256 = "19in8c7a2hxsx2c4lj540w5c3pn1882645m21l91mcriynqr67k9"; fetchSubmodules = true; - inherit rev; - sha256 = "19in8c7a2hxsx2c4lj540w5c3pn1882645m21l91mcriynqr67k9"; }; - parallelBuilding = true; + enableParallelBuilding = true; buildInputs = [ qtbase qtquickcontrols ]; nativeBuildInputs = [ qmakeHook makeQtWrapper ]; desktopItem = makeDesktopItem { - name = "tensor"; - exec = "@bin@"; - icon = "tensor.png"; - comment = meta.description; + name = "tensor"; + exec = "@bin@"; + icon = "tensor.png"; + comment = meta.description; desktopName = "Tensor Matrix Client"; genericName = meta.description; - categories = "Chat;Utility"; - mimeType = "text/xml"; + categories = "Chat;Utility"; + 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; }; } |