11 # bees-service-wrapper
16 stdenv.mkDerivation rec {
20 src = fetchFromGitHub {
24 hash = "sha256-f3P3BEd8uO6QOZ1/2hBzdcuOSggYvHxW3g9pGftKO8g=";
28 btrfs-progs # for btrfs/ioctl.h
29 util-linux # for uuid.h
34 python3Packages.markdown # documentation build
38 git() { if [[ $1 = describe ]]; then echo ${version}; else command git "$@"; fi; }
47 makeWrapper ${./bees-service-wrapper} "$out"/bin/bees-service-wrapper \
48 --prefix PATH : ${lib.makeBinPath [ bash coreutils util-linux btrfs-progs ]} \
49 --set beesd_bin "$out"/lib/bees/bees
53 "ETC_PREFIX=/var/run/bees/configs"
59 "ETC_PREFIX=$(out)/etc"
60 "BEES_VERSION=${version}"
61 "SYSTEMD_SYSTEM_UNIT_DIR=$(out)/etc/systemd/system"
65 smoke-test = nixosTests.bees;
69 homepage = "https://github.com/Zygo/bees";
70 description = "Block-oriented BTRFS deduplication service";
71 longDescription = "Best-Effort Extent-Same: bees finds not just identical files, but also identical extents within files that differ";
72 license = licenses.gpl3;
73 platforms = platforms.linux;
74 maintainers = with maintainers; [ chaduffy ];