crashplan: move version and rev inside 'mkDerivation rec', simplify src

This commit is contained in:
Matt McHenry 2017-06-17 14:18:44 -04:00
parent 53835c93cb
commit 2cb4b8fc70

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";