Last active
August 29, 2015 14:27
-
-
Save codedmart/c31cc342a3c8819f4278 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| $ nix-instantiate haskell-rethinkdb.nix --indirect --add-root $PWD/shell.drv --show-trace |
This file contains hidden or 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
| { mkDerivation, aeson, attoparsec, base, base64-bytestring, binary | |
| , bytestring, containers, data-default, doctest, mtl, network | |
| , scientific, stdenv, text, time, unordered-containers, utf8-string | |
| , vector | |
| }: | |
| mkDerivation { | |
| pname = "rethinkdb"; | |
| version = "2.0.0.0"; | |
| src = ./.; | |
| isLibrary = true; | |
| isExecutable = true; | |
| libraryHaskellDepends = [ | |
| aeson base base64-bytestring binary bytestring containers | |
| data-default mtl network scientific text time unordered-containers | |
| utf8-string vector | |
| ]; | |
| executableHaskellDepends = [ attoparsec base text ]; | |
| testHaskellDepends = [ base doctest ]; | |
| homepage = "http://github.com/atnnn/haskell-rethinkdb"; | |
| description = "A driver for RethinkDB 2.0"; | |
| license = stdenv.lib.licenses.asl20; | |
| } |
This file contains hidden or 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 | |
| pkgs = import <nixpkgs> {}; | |
| stdenv = pkgs.stdenv; | |
| haskellPackages = pkgs.haskellPackages.override { | |
| overrides = self: super: { | |
| haskell-rethinkdb = pkgs.haskell.lib.dontCheck (self.callPackage ./default.nix {}); | |
| }; | |
| }; | |
| inputs = [ | |
| pkgs.neoVimEnv | |
| haskellPackages.ghc-mod | |
| haskellPackages.cabal-install | |
| (haskellPackages.ghcWithPackages (s: [ s.haskell-rethinkdb ])) | |
| ]; | |
| in rec { | |
| haskellRethinkDBEnv = stdenv.mkDerivation rec { | |
| name = "haskell-rethinkdb-env"; | |
| buildInputs = inputs; | |
| NIX_MYENV_NAME = "haskell-rethinkdb"; | |
| shellHook = '' | |
| source ~/.bash_prompt | |
| ''; | |
| }; | |
| } |
This file contains hidden or 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 | |
| pkgs = import <nixpkgs> {}; | |
| haskellPackages = pkgs.haskellPackages.override { | |
| overrides = self: super: { | |
| haskell-rethinkdb = self.callPackage ./. {}; | |
| }; | |
| }; | |
| in haskellPackages.haskell-rethinkdb.env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment