~rjpcasalino/bss

3ad460a0d25578cb7790de3353af3a6091b258d7 — rjpc 2 months ago cbd0312
wrapProgram so we avoid using darwin's rsync
1 files changed, 14 insertions(+), 10 deletions(-)

M flake.nix
M flake.nix => flake.nix +14 -10
@@ 12,18 12,21 @@
        pname = "bss";
        version = "0.1";
        src = self;
        propagatedBuildInputs = [
         perlPackages.TemplateToolkit
         perlPackages.ModuleInstall
         perlPackages.ConfigIniFiles
         perlPackages.YAML
         perlPackages.TextMarkdown
        propagatedBuildInputs = with perlPackages; [
         TemplateToolkit
         ModuleInstall
         ConfigIniFiles
         YAML
         TextMarkdown
         FilesysNotifySimple
        ];
        buildInputs = [ 
         rsync
       ] ++ lib.optional stdenv.isDarwin shortenPerlShebang;
        postInstall = lib.optional stdenv.isDarwin ''
        buildInputs = [
         # use our rsync
         makeWrapper
       ] ++ lib.optionals stdenv.isDarwin [ shortenPerlShebang ];
        postInstall = lib.optionals stdenv.isDarwin ''
          shortenPerlShebang $out/lib/perl5/site_perl/${perl.version}/bss.pl
          wrapProgram $out/lib/perl5/site_perl/${perl.version}/bss.pl --prefix PATH : ${lib.makeBinPath[ rsync ]}
        '';
      };
    in rec {


@@ 31,3 34,4 @@
      }
  );
}