From 0c95190fff80db7cf526109b01a466108eb2616c Mon Sep 17 00:00:00 2001 From: Artjom Vejsel Date: Fri, 25 Sep 2015 19:36:23 +0300 Subject: [PATCH 1/2] qtox: fix git hash revision --- .../networking/instant-messengers/qtox/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/qtox/default.nix b/pkgs/applications/networking/instant-messengers/qtox/default.nix index 5c8a03eb8efc..5863eb0d8055 100644 --- a/pkgs/applications/networking/instant-messengers/qtox/default.nix +++ b/pkgs/applications/networking/instant-messengers/qtox/default.nix @@ -2,12 +2,16 @@ libsodium, libXScrnSaver, glib, gdk_pixbuf, gtk2, cairo, pango, atk, qrencode, ffmpeg, filter-audio, makeWrapper }: +let + revision = "2f6b5e052f2a625d506e83f880c5d68b49118f95"; +in + stdenv.mkDerivation rec { name = "qtox-dev-20150821"; src = fetchgit { url = "https://github.com/tux3/qTox.git"; - rev = "2f6b5e052f2a625d506e83f880c5d68b49118f95"; + rev = "${revision}"; md5 = "b2f9cf283136b6e558876ca2e6d128a3"; }; @@ -21,6 +25,10 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; preConfigure = '' + # patch .pro file for proper set of the git hash + sed -i '/git rev-parse/d' qtox.pro + sed -i 's/$$quote($$GIT_VERSION)/${revision}/' qtox.pro + # since .pro have hardcoded paths, we need to explicitly set paths here export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags glib-2.0)" export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags gdk-pixbuf-2.0)" export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags gtk+-2.0)" @@ -44,9 +52,9 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; meta = with stdenv.lib; { - description = "QT Tox client"; + description = "Qt Tox client"; license = licenses.gpl3; - maintainers = with maintainers; [ viric jgeerds ]; + maintainers = with maintainers; [ viric jgeerds akaWolf ]; platforms = platforms.all; }; } From 1bfa084cdc51fa8bcaee4225c9e0a0d2923b8bb0 Mon Sep 17 00:00:00 2001 From: Artjom Vejsel Date: Fri, 25 Sep 2015 19:47:51 +0300 Subject: [PATCH 2/2] qtox: 20150821 -> 20150925 --- .../networking/instant-messengers/qtox/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/qtox/default.nix b/pkgs/applications/networking/instant-messengers/qtox/default.nix index 5863eb0d8055..170702e44d13 100644 --- a/pkgs/applications/networking/instant-messengers/qtox/default.nix +++ b/pkgs/applications/networking/instant-messengers/qtox/default.nix @@ -3,16 +3,16 @@ pango, atk, qrencode, ffmpeg, filter-audio, makeWrapper }: let - revision = "2f6b5e052f2a625d506e83f880c5d68b49118f95"; + revision = "1673b43e26c853f6446f228fec083af166cbf446"; in stdenv.mkDerivation rec { - name = "qtox-dev-20150821"; + name = "qtox-dev-20150925"; src = fetchgit { url = "https://github.com/tux3/qTox.git"; rev = "${revision}"; - md5 = "b2f9cf283136b6e558876ca2e6d128a3"; + md5 = "785f5b305cdcdf777d93ee823a5b9f49"; }; buildInputs =