5306693272b0b937204b64a67c0dfb46888e34cb114782a4b235273b8801698b

Download raw

Created: 2019-10-12 06:53:48.403379 UTC

Size: 698

Preview (limited to 512 bytes)

"#! /bin/bash\nset -eu\n\nAPT=\"sudo apt-get -q -y\"\nCABAL_INSTALL_DEPS=\"cabal install --only-dependencies --force-reinstall\"\n\n$APT update\n$APT install dctrl-tools\n\n# Find potential system packages to satisfy cabal dependencies\ndeps()\n{\n\tlocal M='^\\([^ ]\\+\\)-[0-9.]\\+ (.*$'\n\tlocal G=' -o ( -FPackage -X libghc-\\L\\1\\E-dev )'\n\tlocal E=\"$($CABAL_INSTALL_DEPS \"$@\" --dry-run -v 2> /dev/null \\\n\t\t| sed -ne \"s/$M/$G/p\" | sort -u)\"\n\tgrep-aptavail -n -sPackage \\( -FNone -X None \\) $E | sort -u\n}\n\n$APT install $(deps \"$@\") li"


A service provided by FP Complete