Add clsync tool

This commit is contained in:
Rodrigo Arias Mallo 2020-08-21 19:49:23 +02:00
parent 5314f343b6
commit 4b27ceec6d
2 changed files with 59 additions and 0 deletions

54
bsc/clsync/default.nix Normal file
View File

@ -0,0 +1,54 @@
{ stdenv
, fetchFromGitHub
, libcap
, libcgroup
, libmhash
, doxygen
, graphviz
, autoreconfHook
, pkg-config
, glib
}:
let
version = "0.4.4";
in stdenv.mkDerivation {
pname = "clsync";
inherit version;
src = fetchFromGitHub {
repo = "clsync";
owner = "clsync";
rev = "v${version}";
sha256 = "0sdiyfwp0iqr6l1sirm51pirzmhi4jzgky5pzfj24nn71q3fwqgz";
};
outputs = [ "out" "dev" ];
buildInputs = [
autoreconfHook
libcap
libcgroup
libmhash
doxygen
graphviz
pkg-config
glib
];
preConfigure = ''
./configure --help
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "File live sync daemon based on inotify/kqueue/bsm (Linux, FreeBSD), written in GNU C";
homepage = "https://github.com/clsync/clsync";
license = licenses.gpl3Plus;
maintainers = [ ];
platforms = platforms.linux;
};
}

View File

@ -9,6 +9,9 @@ let
self.bsc = rec { self.bsc = rec {
nixpkgs = pkgs;
# Load the default implementation # Load the default implementation
#mpi = mpich; #mpi = mpich;
#mpi = openmpi; #mpi = openmpi;
@ -195,6 +198,8 @@ let
nixUnstable nixUnstable
nixFlakes; nixFlakes;
clsync = callPackage ./bsc/clsync/default.nix { };
nixStatic = (callPackageStatic ./bsc/nix/static.nix { nixStatic = (callPackageStatic ./bsc/nix/static.nix {
callPackage = callPackageWith (pkgs.pkgsStatic); callPackage = callPackageWith (pkgs.pkgsStatic);
storeDir = "/nix/store"; storeDir = "/nix/store";