Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created July 3, 2019 18:44
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 cleverca22/3ff0c3d4053c4c6dc913c087618ed646 to your computer and use it in GitHub Desktop.
Save cleverca22/3ff0c3d4053c4c6dc913c087618ed646 to your computer and use it in GitHub Desktop.
with import <nixpkgs> { config.allowBroken = true; config.allowUnfree = true; };
let
src = fetchFromGitHub {
owner = "luna";
repo = "luna-studio";
rev = "ce722844e7656926eac48a4590ada35fefbf0b37";
sha256 = "1mjd2jkj4mlmkrhbd55lw23ad7fd33m20yfq6l2p3caaqxdbx603";
};
src2 = fetchFromGitHub {
owner = "luna";
repo = "luna";
rev = "bfd3f25a617308fe7eabd012019413e7eb8cdcb6";
sha256 = "0zpg80271akhhdwh2p5dvpcrw1n9qc8c0pvz4yfbpcy91yghsfw2";
};
src3 = fetchFromGitHub {
owner = "luna";
repo = "parsert";
rev = "cbcd88c87e8888ebfeacd258cca96b3d6d489d35";
sha256 = "11jiry3wrjfhdgcfyj6ckgdph1yfa3wz1bc46jzmbigrsjg7i7z4";
};
overlay = self: super: {
node-editor = self.callCabal2nix "node-editor" "${src}/frontend/node-editor" {};
luna-api-definition = self.callCabal2nix "luna-api-definition" "${src}/common/api-definition" {};
common = self.callCabal2nix "common" "${src}/frontend/lib" {};
luna-lexer = self.callCabal2nix "luna-lexer" "${src2}/syntax/text/lexer" {};
luna-node-editor-view = self.callCabal2nix "luna-node-editor-view" "${src}/frontend/node-editor-view" {};
parsert = self.callCabal2nix "parsert" src3 {};
text-processing = self.callCabal2nix "text-processing" (fetchFromGitHub {
owner = "luna";
repo = "text-processing";
rev = "fe9834f3f5583086d76b12779a1c2a5290c72b0d";
sha256 = "1p9bppliwkcs3qxhasbgs2rxqrj74c6g33va2q6i4vv7czm2ysyq";
}) {};
};
in haskell.packages.ghcjs.override { overrides = overlay; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment