Skip to content

Instantly share code, notes, and snippets.

@mjrosenb
Created January 25, 2022 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjrosenb/c319971baa1a48b02fe647c7d740caf5 to your computer and use it in GitHub Desktop.
Save mjrosenb/c319971baa1a48b02fe647c7d740caf5 to your computer and use it in GitHub Desktop.
with (import (builtins.fetchGit {
url = "https://github.com/dmjio/miso";
ref = "f910593c1a0a6ce1624f41d4e74963370cec958c"; # "refs/tags/1.8";
}) {});
let nixpkgs = import <nixpkgs> {};
pkgs = import ./common.nix;
dotrace = msg: set: let names = builtins.concatStringsSep "; " (builtins.attrNames packages);
in builtins.trace ''${msg} attrs are: ${names} '' set;
pkgs2 = pkgs // {
haskell = pkgs.haskell // {
packages = pkgs.haskell.packages // {
ghc8107 = pkgs.haskell.packages.ghc8107.extend(hself: hsuper: {
cabal-install = nixpkgs.cabal-install;
});
ghcjs810 = pkgs.haskell.packages.ghcjs810.override {
overrides = hself: hsuper: {
memory = pkgs.haskell.lib.dontCheck hsuper.memory;
};
}; #// (
#dotrace "from importing hls.nix" (import ./hackage/hls.nix ({lib = nixpkgs.lib; callPackage = hsuper.callPackage; }) hself)
#)
};
};
};
packages = pkgs2.haskell.packages;
pkgattr = builtins.concatStringsSep "; " (builtins.attrNames packages);
latter = builtins.trace ''packages attrs are: ${pkgattr} '' packages;
in {
pkgs = pkgs2;
match_rex = latter.ghc8107.callCabal2nix "match-rex" ./. { miso = latter.ghc8107.miso-jsaddle; };
release = latter.ghcjs810.callCabal2nix "match-rex" ./. {};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment