mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
Add asynk
This commit is contained in:
parent
130f66b683
commit
3886e1c93d
2 changed files with 38 additions and 0 deletions
36
pkgs/tools/networking/asynk/default.nix
Normal file
36
pkgs/tools/networking/asynk/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ stdenv, fetchurl, python2, python2Packages, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.0.0-rc2";
|
||||
name = "ASynK-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
name = "${name}.tar.gz";
|
||||
url = "https://github.com/skarra/ASynK/archive/v${version}.tar.gz";
|
||||
sha256 = "14s53ijn9fpxr490ypnn92zk6h5rdadf7j3z98rah1h7l659qi1b";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python2Packages; [ python2 makeWrapper tornado requests dateutil ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp asynk.py $out/bin/
|
||||
cp state.init.json $out/
|
||||
cp -R config $out/
|
||||
cp -R lib $out/
|
||||
cp -R asynk $out/
|
||||
|
||||
substituteInPlace $out/bin/asynk.py \
|
||||
--replace "ASYNK_BASE_DIR = os.path.dirname(os.path.abspath(__file__))" "ASYNK_BASE_DIR = \"$out\""
|
||||
|
||||
wrapProgram "$out/bin/asynk.py" \
|
||||
--prefix PYTHONPATH : "$PYTHONPATH"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://asynk.io/;
|
||||
description = "Flexible contacts synchronization program";
|
||||
license = licenses.agpl3;
|
||||
maintainers = [ maintainers.DamienCassou ];
|
||||
};
|
||||
}
|
|
@ -759,6 +759,8 @@ let
|
|||
|
||||
autossh = callPackage ../tools/networking/autossh { };
|
||||
|
||||
asynk = callPackage ../tools/networking/asynk { };
|
||||
|
||||
bacula = callPackage ../tools/backup/bacula { };
|
||||
|
||||
bareos = callPackage ../tools/backup/bareos { };
|
||||
|
|
Loading…
Reference in a new issue