diff --git a/bsc/clsync/default.nix b/bsc/clsync/default.nix new file mode 100644 index 0000000..4c2a80d --- /dev/null +++ b/bsc/clsync/default.nix @@ -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; + }; +} + diff --git a/default.nix b/default.nix index 048fdcb..a3a2028 100644 --- a/default.nix +++ b/default.nix @@ -9,6 +9,9 @@ let self.bsc = rec { + nixpkgs = pkgs; + + # Load the default implementation #mpi = mpich; #mpi = openmpi; @@ -195,6 +198,8 @@ let nixUnstable nixFlakes; + clsync = callPackage ./bsc/clsync/default.nix { }; + nixStatic = (callPackageStatic ./bsc/nix/static.nix { callPackage = callPackageWith (pkgs.pkgsStatic); storeDir = "/nix/store";