mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
bdsync: init at 0.10.1
This commit is contained in:
parent
afe9649210
commit
d4f51de3b0
43
pkgs/tools/backup/bdsync/default.nix
Normal file
43
pkgs/tools/backup/bdsync/default.nix
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, openssl, coreutils, which }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
pname = "bdsync";
|
||||||
|
version = "0.10.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "TargetHolding";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "144hlbk3k29l7sja6piwhd2jsnzzsak13fcjbahd6m8yimxyb2nf";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs ./tests.sh
|
||||||
|
patchShebangs ./tests/
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ openssl coreutils which ];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
checkPhase = ''
|
||||||
|
make test
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
mkdir -p $out/share/man/man1
|
||||||
|
cp bdsync $out/bin/
|
||||||
|
cp bdsync.1 $out/share/man/man1/
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Fast block device synchronizing tool";
|
||||||
|
homepage = https://github.com/TargetHolding/bdsync;
|
||||||
|
license = licenses.gpl2;
|
||||||
|
platforms = platforms.all;
|
||||||
|
maintainers = with maintainers; [ jluttine ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -1314,6 +1314,8 @@ with pkgs;
|
|||||||
|
|
||||||
bats = callPackage ../development/interpreters/bats { };
|
bats = callPackage ../development/interpreters/bats { };
|
||||||
|
|
||||||
|
bdsync = callPackage ../tools/backup/bdsync { };
|
||||||
|
|
||||||
beanstalkd = callPackage ../servers/beanstalkd { };
|
beanstalkd = callPackage ../servers/beanstalkd { };
|
||||||
|
|
||||||
beets = callPackage ../tools/audio/beets {
|
beets = callPackage ../tools/audio/beets {
|
||||||
|
Loading…
Reference in New Issue
Block a user