datahub/contrib/metadata-ingestion/haskell/bin/lineage_hive_generator.hs.nix
John Plaisted 6ece2d6469
Start adding java ETL examples, starting with kafka etl. (#1805)
Start adding java ETL examples, starting with kafka etl.

We've had a few requests to start providing Java examples rather than Python due to type safety.

I've also started to add these to metadata-ingestion-examples to make it clearer these are *examples*. They can be used directly or as a basis for other things.

As we port to Java we'll move examples to contrib.
2020-09-11 13:04:21 -07:00

32 lines
985 B
Nix

with import <nixpkgs> {} ;
let
queryparser_git = fetchFromGitHub {
owner = "uber" ;
repo = "queryparser" ;
rev = "6015e8f273f4498326fec0315ac5580d7036f8a4" ;
sha256 = "05pnifm5awyqxi6330v791b1cvw26xbcn2r20pqakvl8d3xyaxa4" ;
} ;
haskellPackages = pkgs.haskellPackages.override {
overrides = self: super: with pkgs.haskell.lib; {
queryparser = appendConfigureFlag
(dontHaddock (doJailbreak (self.callCabal2nix "queryparser" queryparser_git {})))
"--ghc-options=-XNoMonadFailDesugaring" ;
queryparser-hive = dontHaddock (doJailbreak (self.callCabal2nix "queryparser-hive" (queryparser_git + /dialects/hive) {})) ;
} ;
};
in
mkShell {
buildInputs = [
(haskellPackages.ghcWithPackages ( p:
[ p.bytestring p.text p.string-conversions
p.exceptions p.time
p.aeson p.aeson-qq
p.conduit
p.queryparser p.queryparser-hive
]
))
];
}