Created
March 21, 2018 19:22
-
-
Save srhb/9995a60cbec68fab2b87b078e26c5753 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
# Run me with nix-shell tensorflow-proto-shell.nix | |
{ bootstrap ? import <nixpkgs> {} }: | |
let | |
overlays = [ | |
(self: super: { | |
haskellPackages = super.haskellPackages.extend (selfHS: superHS: { | |
proto-lens = self.haskell.lib.doJailbreak superHS.proto-lens; | |
tensorflow-proto = self.haskell.lib.addBuildTool superHS.tensorflow-proto self.protobuf3_4; | |
}); | |
}) | |
]; | |
# NixOS 17.09 HEAD as of 2018-03-21 | |
pkgs = import (bootstrap.fetchFromGitHub { | |
owner = "NixOS"; | |
repo = "nixpkgs"; | |
rev = "fd016e362daf3f608d42204a8407a6a3723032e9"; | |
sha256 = "06ng6k3s7zq4mx317fl3halczrdichjdl767q7zfnbpjz7k5gs83"; | |
}) { inherit overlays; config = {}; }; | |
in | |
pkgs.stdenv.mkDerivation { | |
name = "tensorflow-proto-env"; | |
buildInputs = [ (pkgs.haskellPackages.ghcWithPackages (hps: with hps; [ tensorflow-proto ]) ) ]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment