From 2cb4b8fc701bc0a9f0f9cf6f4764cd199c0ec88d Mon Sep 17 00:00:00 2001 From: Matt McHenry Date: Sat, 17 Jun 2017 14:18:44 -0400 Subject: [PATCH] crashplan: move version and rev inside 'mkDerivation rec', simplify src --- pkgs/applications/backup/crashplan/default.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/backup/crashplan/default.nix b/pkgs/applications/backup/crashplan/default.nix index b5b4b23353a0..25842d4a989a 100644 --- a/pkgs/applications/backup/crashplan/default.nix +++ b/pkgs/applications/backup/crashplan/default.nix @@ -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";