Files
nixos/utils/pkgs/bento/default.nix
2025-05-08 22:46:20 +02:00

41 lines
1.1 KiB
Nix

{ pkgs, lib, stdenv, fetchgit }:
stdenv.mkDerivation rec {
name = "bento";
src = fetchgit {
url = "https://github.com/dpolakovics/bento.git";
rev = "73092673b194fd734d782f5b7e83dfbb5d169372";
sha256 = "sha256-/37RJTjo+FJa1Flt59LrQbaJIcBid/z+Hy1xfhYGXNA=";
};
buildInputs = [ ];
postPatch = ''
substituteInPlace bento --replace 'inotifywait' "${pkgs.inotify-tools}/bin/inotifywait";
'';
installPhase = ''
mkdir -p $out/bin
mkdir -p $out/share
install -Dm555 bento $out/bin/
install -Dm444 fleet.nix $out/share/
install -Dm444 config.sh.sample $out/share/
install -Dm444 LICENSE $out/share/
install -Dm444 README.md $out/share/
install -Dm444 utils/bento.nix $out/share/
'';
meta = with lib; {
description = "A KISS deployment tool to keep your NixOS fleet (servers & workstations) up to date.";
homepage = "https://github.com/rapenne-s/bento";
license = licenses.mit;
platforms = platforms.linux;
};
}
## fleet nix is for sftp server with chroot
## just copy to bento server and change configuration