From 4c25a47cbd6d8d9f8911499f64669202e96ceff0 Mon Sep 17 00:00:00 2001 From: ndowens Date: Sun, 19 Mar 2017 20:12:46 -0500 Subject: [PATCH] copyq: 2.5.0 -> 2.9.0 --- pkgs/applications/misc/copyq/default.nix | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/pkgs/applications/misc/copyq/default.nix b/pkgs/applications/misc/copyq/default.nix index 0892f8899324..7461f6853f47 100644 --- a/pkgs/applications/misc/copyq/default.nix +++ b/pkgs/applications/misc/copyq/default.nix @@ -1,21 +1,25 @@ -{ stdenv, fetchurl, cmake, qt4, libXfixes, libXtst}: +{ stdenv, fetchFromGitHub, cmake, qt4, libXfixes, libXtst}: -let version = "2.5.0"; -in -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "CopyQ-${version}"; - src = fetchurl { - url = "https://github.com/hluk/CopyQ/archive/v${version}.tar.gz"; - sha256 = "7726745056e8d82625531defc75b2a740d3c42131ecce1f3181bc0a0bae51fb1"; + version = "2.9.0"; + + src = fetchFromGitHub { + owner = "hluk"; + repo = "CopyQ"; + rev = "v${version}"; + sha256 = "1gnqsfh50w3qcnbghkpjr5qs42fgl6643lmg4mg4wam8a852s64f"; }; - buildInputs = [ cmake qt4 libXfixes libXtst ]; + nativeBuildInputs = [ cmake ]; + + buildInputs = [ qt4 libXfixes libXtst ]; meta = with stdenv.lib; { - homepage = "https://hluk.github.io/CopyQ"; + homepage = https://hluk.github.io/CopyQ; description = "Clipboard Manager with Advanced Features"; license = licenses.gpl3; - maintainers = with maintainers; [ willtim ]; + maintainers = [ maintainers.willtim ]; # NOTE: CopyQ supports windows and osx, but I cannot test these. # OSX build requires QT5. platforms = platforms.linux;