-
-
Save mjrosenb/c319971baa1a48b02fe647c7d740caf5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with (import (builtins.fetchGit { | |
url = "https://github.com/dmjio/miso"; | |
ref = "f910593c1a0a6ce1624f41d4e74963370cec958c"; # "refs/tags/1.8"; | |
}) {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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