From 76b18e4204130000bb919cafd9f7dae4844e122f Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Wed, 5 Jun 2013 02:25:20 +0000 Subject: [PATCH] gmvault: Fix start script --- pkgs/tools/networking/gmvault/default.nix | 7 +++++++ pkgs/tools/networking/gmvault/gmvault.py | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 pkgs/tools/networking/gmvault/gmvault.py diff --git a/pkgs/tools/networking/gmvault/default.nix b/pkgs/tools/networking/gmvault/default.nix index 5ed0a57bfae5..1ea2b761fc89 100644 --- a/pkgs/tools/networking/gmvault/default.nix +++ b/pkgs/tools/networking/gmvault/default.nix @@ -19,6 +19,13 @@ buildPythonPackage rec { pythonPackages.argparse ]; + startScript = ./gmvault.py; + + patchPhase = '' + cat ${startScript} > etc/scripts/gmvault + chmod +x etc/scripts/gmvault + ''; + meta = { description = "Gmvault Gmail Backup - Backup and restore your gmail account at will."; homepage = "http://gmvault.org"; diff --git a/pkgs/tools/networking/gmvault/gmvault.py b/pkgs/tools/networking/gmvault/gmvault.py new file mode 100644 index 000000000000..127036577f38 --- /dev/null +++ b/pkgs/tools/networking/gmvault/gmvault.py @@ -0,0 +1,4 @@ +#!/usr/bin/env python + +import gmv.gmv_cmd as runner +runner.bootstrap_run()