Commit aa311bed authored by Ben Gamari's avatar Ben Gamari 🐢

Filter sources

parent e5340607
Pipeline #4533 failed with stages
in 3 minutes and 54 seconds
......@@ -2,7 +2,7 @@
set -e
( ghc-homepage serve || ( echo "serve failed"; exit 1 ) ) &
( ghc-homepage server || ( echo "serve failed"; exit 1 ) ) &
# docs/ seems to be a URL rewrite rule provided by haskell.org
# dist/mac_frameworks appears to be lost to history
......
......@@ -2,19 +2,20 @@
with nixpkgs;
let
hs = haskellPackages.callCabal2nix "ghc-homepage" ./. {};
src = nix-gitignore.gitignoreSource [] ./.;
hs = haskellPackages.callCabal2nix "ghc-homepage" src {};
scripts = stdenv.mkDerivation {
name = "ghc-homepage-scripts";
buildInputs = [ linkchecker ];
nativeBuildInputs = [ makeWrapper ];
src = nix-gitignore.gitignoreSource [] ./.;
inherit src;
installPhase = ''
mkdir -p $out/bin
install check.sh $out/bin
chmod ugo+rx $out/bin/check.sh
makeWrapper ${hs}/bin/check.sh $out/bin/check.sh \
--append PATH : ${linkchecker}/bin:$out/bin
wrapProgram $out/bin/check.sh \
--prefix PATH : ${linkchecker}/bin:$out/bin
makeWrapper ${hs}/bin/ghc-homepage $out/bin/ghc-homepage \
--set LOCALE_ARCHIVE "${glibcLocales}/lib/locale/locale-archive" \
--set LANG en_US.UTF-8
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment