mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
ddar: move out of pythonPackages
This commit is contained in:
parent
08fdc973d4
commit
80f84ceda2
3 changed files with 27 additions and 21 deletions
25
pkgs/tools/backup/ddar/default.nix
Normal file
25
pkgs/tools/backup/ddar/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ lib, buildPythonApplication, fetchFromGitHub, python, protobuf, sqlite, roundup }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "ddar";
|
||||
version = "1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "basak";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "158jdy5261k9yw540g48hddy5zyqrr81ir9fjlcy4jnrwfkg7ynm";
|
||||
};
|
||||
|
||||
preBuild = ''
|
||||
make -f Makefile.prep synctus/ddar_pb2.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ protobuf ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Unix de-duplicating archiver";
|
||||
license = licenses.gpl3;
|
||||
homepage = src.meta.homepage;
|
||||
};
|
||||
}
|
|
@ -1031,6 +1031,8 @@ with pkgs;
|
|||
|
||||
dateutils = callPackage ../tools/misc/dateutils { };
|
||||
|
||||
ddar = pythonPackages.callPackage ../tools/backup/ddar { };
|
||||
|
||||
ddate = callPackage ../tools/misc/ddate { };
|
||||
|
||||
dehydrated = callPackage ../tools/admin/dehydrated { };
|
||||
|
|
|
@ -3836,27 +3836,6 @@ in {
|
|||
};
|
||||
});
|
||||
|
||||
ddar = buildPythonPackage {
|
||||
name = "ddar-1.0";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/basak/ddar/archive/v1.0.tar.gz";
|
||||
sha256 = "08lv7hrbhcv6hbl01sx8fgx3l8s2nn8rvcicdidafwm87bvi2nmr";
|
||||
};
|
||||
|
||||
preBuild = ''
|
||||
make -f Makefile.prep synctus/ddar_pb2.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with self; [ protobuf ];
|
||||
|
||||
meta = {
|
||||
description = "Unix de-duplicating archiver";
|
||||
license = licenses.gpl3;
|
||||
homepage = https://github.com/basak/ddar;
|
||||
};
|
||||
};
|
||||
|
||||
decorator = callPackage ../development/python-modules/decorator { };
|
||||
|
||||
deform = buildPythonPackage rec {
|
||||
|
|
Loading…
Reference in a new issue