git.iko.soy/typeable/nixpkgs
on master help sign in
rPackages.littler: fix build (#51282)

littler gives a wrapped called `r` (or `lr` for non-case-preserving systems like Darwin) which works as shebang or pipe target. The build was completely broken before (missing deps). Symlink executables and manpage into standard locations so that this packages also works in `environment.systemPackages`.

commit3b445042ac00fb28aa0a74568a2c30f65afde807 authorChristian Kauhaus <kc@flyingcircus.io> dateThu 6 Dec 2018, 17:22 (8 years ago) parent015b2b1
1 file changed+12
pkgs/development/r-modules/default.nix+12
pkgs/development/r-modules/default.nix+12
@@ -950,6 +950,18 @@ let
950950 preConfigure = "patchShebangs configure";
951951 });
952952
953+ littler = old.littler.overrideAttrs (attrs: with pkgs; {
954+ buildInputs = [ pcre lzma zlib bzip2 icu which ] ++ attrs.buildInputs;
955+ postInstall = ''
956+ install -d $out/bin $out/share/man/man1
957+ ln -s ../library/littler/bin/r $out/bin/r
958+ ln -s ../library/littler/bin/r $out/bin/lr
959+ ln -s ../../../library/littler/man-page/r.1 $out/share/man/man1
960+ # these won't run without special provisions, so better remove them
961+ rm -r $out/library/littler/script-tests
962+ '';
963+ });
964+
953965 };
954966in
955967 self