1 { lib, stdenv, makeWrapper, haskellPackages, packages ? (pkgs: [])
4 let defaultPkgs = pkgs: [ pkgs.show
9 env = haskellPackages.ghcWithPackages
10 (pkgs: defaultPkgs pkgs ++ packages pkgs);
12 in stdenv.mkDerivation {
15 inherit (haskellPackages) mueval;
17 nativeBuildInputs = [ makeWrapper ];
26 makeWrapper $mueval/bin/mueval $out/bin/mueval \
27 --set "NIX_GHC_LIBDIR" "$(${lib.getExe' env "ghc"} --print-libdir)"
35 [[ $($out/bin/mueval -e 42) == 42 ]]
38 passthru = { inherit defaultPkgs; };
39 meta.mainProgram = "mueval";