2022-04-27 09:35:20 +00:00
|
|
|
{ stdenv, ghcWithPackages, makeWrapper, packages, lib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
hyperHaskellEnv = ghcWithPackages (self: [ self.hyper-haskell-server ] ++ packages self);
|
|
|
|
in stdenv.mkDerivation {
|
2022-02-10 20:34:41 +00:00
|
|
|
pname = "hyper-haskell-server-with-packages";
|
|
|
|
version = hyperHaskellEnv.version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${hyperHaskellEnv}/bin/hyper-haskell-server $out/bin/hyper-haskell-server \
|
|
|
|
--set NIX_GHC ${hyperHaskellEnv}/bin/ghc \
|
|
|
|
--set NIX_GHCPKG ${hyperHaskellEnv}/bin/ghc-pkg \
|
|
|
|
--set NIX_GHC_LIBDIR ${hyperHaskellEnv}/lib/ghc-*
|
|
|
|
'';
|
|
|
|
|
|
|
|
# trivial derivation
|
|
|
|
preferLocalBuild = true;
|
|
|
|
allowSubstitutes = false;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
# Marked as broken because the underlying
|
|
|
|
# haskellPackages.hyper-haskell-server is marked as broken.
|
|
|
|
hydraPlatforms = lib.platforms.none;
|
|
|
|
broken = true;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|