~rjpcasalino/bss

f0f73e03b68b4e9a14318d8b85b6dce8626afa6c — rjpc 2 months ago 6a11db1
ugly if else and there's dup code...fix fix fix
1 files changed, 5 insertions(+), 4 deletions(-)

M flake.nix
M flake.nix => flake.nix +5 -4
@@ 23,11 23,12 @@
        buildInputs = [
         makeWrapper
       ] ++ lib.optionals stdenv.isDarwin [ shortenPerlShebang ];
        postInstall = ''
          # avoid system rsync
          wrapProgram $out/lib/perl5/site_perl/${perl.version}/bss.pl --prefix PATH : ${lib.makeBinPath[ rsync ]}
        '' + lib.optionalString stdenv.isDarwin ''
        postInstall = if stdenv.isDarwin then ''
          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 ]}
        '' else ''
          # FIXME avoid system rsync
          wrapProgram $out/lib/perl5/site_perl/${perl.version}/bss.pl --prefix PATH : ${lib.makeBinPath[ rsync ]}
        '';
      };
    in rec {