Merge pull request #26705 from jerith666/cp-ver-fix
crashplan: move version and rev inside 'mkDerivation rec', simplify src
This commit is contained in:
commit
d159271516
|
@ -1,19 +1,15 @@
|
||||||
{ stdenv, fetchurl, makeWrapper, jre, cpio, gawk, gnugrep, gnused, procps, swt, gtk2, glib, libXtst }:
|
{ stdenv, fetchurl, makeWrapper, jre, cpio, gawk, gnugrep, gnused, procps, swt, gtk2, glib, libXtst }:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
version = "4.8.2";
|
version = "4.8.2";
|
||||||
rev = "1"; #tracks unversioned changes that occur on download.code42.com from time to time
|
rev = "1"; #tracks unversioned changes that occur on download.code42.com from time to time
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
name = "crashplan-${version}-r${rev}";
|
name = "crashplan-${version}-r${rev}";
|
||||||
|
|
||||||
crashPlanArchive = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://download.code42.com/installs/linux/install/CrashPlan/CrashPlan_${version}_Linux.tgz";
|
url = "https://download.code42.com/installs/linux/install/CrashPlan/CrashPlan_${version}_Linux.tgz";
|
||||||
sha256 = "0wh8lcm06ilcyncnp4ckg4yhyf9z3gb6v1kr111j4bpgmnd0v1yf";
|
sha256 = "0wh8lcm06ilcyncnp4ckg4yhyf9z3gb6v1kr111j4bpgmnd0v1yf";
|
||||||
};
|
};
|
||||||
|
|
||||||
srcs = [ crashPlanArchive ];
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "An online/offline backup solution";
|
description = "An online/offline backup solution";
|
||||||
homepage = "http://www.crashplan.org";
|
homepage = "http://www.crashplan.org";
|
||||||
|
|
Loading…
Reference in New Issue