Merge pull request #26705 from jerith666/cp-ver-fix

crashplan: move version and rev inside 'mkDerivation rec', simplify src
This commit is contained in:
Frederik Rietdijk 2017-06-19 09:41:17 +02:00 committed by GitHub
commit d159271516

View File

@ -1,19 +1,15 @@
{ stdenv, fetchurl, makeWrapper, jre, cpio, gawk, gnugrep, gnused, procps, swt, gtk2, glib, libXtst }:
let
stdenv.mkDerivation rec {
version = "4.8.2";
rev = "1"; #tracks unversioned changes that occur on download.code42.com from time to time
in stdenv.mkDerivation rec {
name = "crashplan-${version}-r${rev}";
crashPlanArchive = fetchurl {
src = fetchurl {
url = "https://download.code42.com/installs/linux/install/CrashPlan/CrashPlan_${version}_Linux.tgz";
sha256 = "0wh8lcm06ilcyncnp4ckg4yhyf9z3gb6v1kr111j4bpgmnd0v1yf";
};
srcs = [ crashPlanArchive ];
meta = with stdenv.lib; {
description = "An online/offline backup solution";
homepage = "http://www.crashplan.org";